Class AmqpAcquisition.ConnectionUpdater

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    AmqpAcquisition

    private static class AmqpAcquisition.ConnectionUpdater
    extends Daemon
    Daemon used to periodically update the pool of connections known by the acquisition destinations.
    • Constructor Detail

      • ConnectionUpdater

        protected ConnectionUpdater​(long updatePeriod)
        Constructs a ConnectionUpdater thread.
    • Method Detail

      • run

        public void run()
        The daemon's loop.
      • shutdown

        public void shutdown()
        Shuts the daemon down.
        Specified by:
        shutdown in class Daemon
      • close

        public void close()
        Releases the daemon's resources.
        Specified by:
        close in class Daemon
      • addUpdateListener

        protected void addUpdateListener​(AmqpAcquisition listener)
      • removeUpdateListener

        protected void removeUpdateListener​(AmqpAcquisition listener)