Class DiscoveryPool
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.routing.pools.AbstractPool
-
- org.apache.activemq.artemis.core.server.routing.pools.DiscoveryPool
-
- All Implemented Interfaces:
ActiveMQComponent,DiscoveryService.Listener,Pool
public class DiscoveryPool extends AbstractPool implements DiscoveryService.Listener
-
-
Constructor Summary
Constructors Constructor Description DiscoveryPool(TargetFactory targetFactory, ScheduledExecutorService scheduledExecutor, int checkPeriod, DiscoveryService discoveryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidentryAdded(DiscoveryService.Entry entry)voidentryRemoved(DiscoveryService.Entry entry)voidentryUpdated(DiscoveryService.Entry oldEntry, DiscoveryService.Entry newEntry)voidstart()voidstop()-
Methods inherited from class org.apache.activemq.artemis.core.server.routing.pools.AbstractPool
addTarget, addTarget, addTargetProbe, getAllTargets, getCheckPeriod, getPassword, getQuorumSize, getQuorumTimeout, getReadyTarget, getTarget, getTargetProbes, getTargets, getUsername, isStarted, isTargetReady, removeTarget, removeTargetProbe, setPassword, setQuorumSize, setQuorumTimeout, setUsername
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
DiscoveryPool
public DiscoveryPool(TargetFactory targetFactory, ScheduledExecutorService scheduledExecutor, int checkPeriod, DiscoveryService discoveryService)
-
-
Method Detail
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Overrides:
startin classAbstractPool- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Overrides:
stopin classAbstractPool- Throws:
Exception
-
entryAdded
public void entryAdded(DiscoveryService.Entry entry)
- Specified by:
entryAddedin interfaceDiscoveryService.Listener
-
entryRemoved
public void entryRemoved(DiscoveryService.Entry entry)
- Specified by:
entryRemovedin interfaceDiscoveryService.Listener
-
entryUpdated
public void entryUpdated(DiscoveryService.Entry oldEntry, DiscoveryService.Entry newEntry)
- Specified by:
entryUpdatedin interfaceDiscoveryService.Listener
-
-