Class LocalGroupingHandler
java.lang.Object
org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
org.apache.activemq.artemis.core.server.group.impl.LocalGroupingHandler
- All Implemented Interfaces:
ActiveMQComponent,GroupingHandler,NotificationListener
A Local Grouping handler. All the Remote handlers will talk with us
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
address, executor, managementService -
Constructor Summary
ConstructorsConstructorDescriptionLocalGroupingHandler(ExecutorFactory executorFactory, ScheduledExecutorService scheduledExecutor, ManagementService managementService, SimpleString name, SimpleString address, StorageManager storageManager, long timeout, long groupTimeout, long reaperPeriod) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupBinding(GroupBinding groupBinding) voidgetName()getProposal(SimpleString fullID, boolean touchTime) booleanvoidonNotification(Notification notification) voidvoidremove(SimpleString groupid, SimpleString clusterName) voidremove(SimpleString groupid, SimpleString clusterName, int distance) voidvoidsendProposalResponse(Response response, int distance) voidstart()voidstop()Methods inherited from class org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
addListener, fireUnproposed, forceRemove, sendUnproposalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
LocalGroupingHandler
public LocalGroupingHandler(ExecutorFactory executorFactory, ScheduledExecutorService scheduledExecutor, ManagementService managementService, SimpleString name, SimpleString address, StorageManager storageManager, long timeout, long groupTimeout, long reaperPeriod)
-
-
Method Details
-
getName
-
propose
- Throws:
Exception
-
resendPending
- Throws:
Exception
-
proposed
- Throws:
Exception
-
remove
- Throws:
Exception
-
sendProposalResponse
- Throws:
Exception
-
receive
- Throws:
Exception
-
addGroupBinding
-
getProposal
-
remove
-
awaitBindings
- Throws:
Exception
-
onNotification
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
isStarted
public boolean isStarted()
-