Class AmqpAcquisition.ConnectionUpdater
- java.lang.Object
-
- fr.dyade.aaa.common.Daemon
-
- org.objectweb.joram.mom.dest.amqp.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 Summary
Constructors Modifier Constructor Description protectedConnectionUpdater(long updatePeriod)Constructs aConnectionUpdaterthread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddUpdateListener(AmqpAcquisition listener)voidclose()Releases the daemon's resources.protected voidremoveUpdateListener(AmqpAcquisition listener)voidrun()The daemon's loop.voidshutdown()Shuts the daemon down.-
Methods inherited from class fr.dyade.aaa.common.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString
-
-
-
-
Field Detail
-
listeners
private List<AmqpAcquisition> listeners
-
period
private long period
-
-
Method Detail
-
run
public void run()
The daemon's loop.
-
addUpdateListener
protected void addUpdateListener(AmqpAcquisition listener)
-
removeUpdateListener
protected void removeUpdateListener(AmqpAcquisition listener)
-
-