Class GroupHandlingAbstract
java.lang.Object
org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
- All Implemented Interfaces:
ActiveMQComponent,GroupingHandler,NotificationListener
- Direct Known Subclasses:
LocalGroupingHandler,RemoteGroupingHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SimpleStringprotected final Executorprotected final ManagementService -
Constructor Summary
ConstructorsConstructorDescriptionGroupHandlingAbstract(Executor executor, ManagementService managementService, SimpleString address) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(UnproposalListener listener) protected voidfireUnproposed(SimpleString groupID) voidforceRemove(SimpleString groupid, SimpleString clusterName) this will force a removal of the group everywhere with an unproposal (dinstance=0).protected voidsendUnproposal(SimpleString groupid, SimpleString clusterName, int distance) Methods 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, isStarted, start, stopMethods inherited from interface org.apache.activemq.artemis.core.server.group.GroupingHandler
addGroupBinding, awaitBindings, getName, getProposal, propose, proposed, receive, remove, remove, resendPending, sendProposalResponseMethods inherited from interface org.apache.activemq.artemis.core.server.management.NotificationListener
onNotification
-
Field Details
-
executor
-
managementService
-
address
-
-
Constructor Details
-
GroupHandlingAbstract
public GroupHandlingAbstract(Executor executor, ManagementService managementService, SimpleString address)
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfaceGroupingHandler
-
fireUnproposed
-
forceRemove
Description copied from interface:GroupingHandlerthis will force a removal of the group everywhere with an unproposal (dinstance=0). This is for the case where a node goes missing- Specified by:
forceRemovein interfaceGroupingHandler- Throws:
Exception
-
sendUnproposal
-