Interface GroupingHandler
-
- All Superinterfaces:
ActiveMQComponent,NotificationListener
- All Known Implementing Classes:
GroupHandlingAbstract,LocalGroupingHandler,RemoteGroupingHandler
public interface GroupingHandler extends NotificationListener, ActiveMQComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddGroupBinding(GroupBinding groupBinding)voidaddListener(UnproposalListener listener)voidawaitBindings()voidforceRemove(SimpleString groupid, SimpleString clusterName)this will force a removal of the group everywhere with an unproposal (dinstance=0).SimpleStringgetName()ResponsegetProposal(SimpleString fullID, boolean touchTime)Responsepropose(Proposal proposal)voidproposed(Response response)Responsereceive(Proposal proposal, int distance)voidremove(SimpleString groupid, SimpleString clusterName)voidremove(SimpleString groupid, SimpleString clusterName, int distance)voidresendPending()voidsendProposalResponse(Response response, int distance)-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop, isStarted, start, stop
-
Methods inherited from interface org.apache.activemq.artemis.core.server.management.NotificationListener
onNotification
-
-
-
-
Method Detail
-
addListener
void addListener(UnproposalListener listener)
-
getName
SimpleString getName()
-
sendProposalResponse
void sendProposalResponse(Response response, int distance) throws Exception
- Throws:
Exception
-
addGroupBinding
void addGroupBinding(GroupBinding groupBinding)
-
getProposal
Response getProposal(SimpleString fullID, boolean touchTime)
-
forceRemove
void forceRemove(SimpleString groupid, SimpleString clusterName) throws Exception
this will force a removal of the group everywhere with an unproposal (dinstance=0). This is for the case where a node goes missing- Throws:
Exception
-
remove
void remove(SimpleString groupid, SimpleString clusterName) throws Exception
- Throws:
Exception
-
remove
void remove(SimpleString groupid, SimpleString clusterName, int distance) throws Exception
- Throws:
Exception
-
-