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
public final class LocalGroupingHandler extends GroupHandlingAbstract
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
Constructors Constructor Description LocalGroupingHandler(ExecutorFactory executorFactory, ScheduledExecutorService scheduledExecutor, ManagementService managementService, SimpleString name, SimpleString address, StorageManager storageManager, long timeout, long groupTimeout, long reaperPeriod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroupBinding(GroupBinding groupBinding)voidawaitBindings()SimpleStringgetName()ResponsegetProposal(SimpleString fullID, boolean touchTime)booleanisStarted()voidonNotification(Notification notification)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)voidstart()voidstop()-
Methods inherited from class org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
addListener, fireUnproposed, forceRemove, sendUnproposal
-
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
-
LocalGroupingHandler
public LocalGroupingHandler(ExecutorFactory executorFactory, ScheduledExecutorService scheduledExecutor, ManagementService managementService, SimpleString name, SimpleString address, StorageManager storageManager, long timeout, long groupTimeout, long reaperPeriod)
-
-
Method Detail
-
getName
public SimpleString getName()
-
remove
public void remove(SimpleString groupid, SimpleString clusterName, int distance) throws Exception
- Throws:
Exception
-
sendProposalResponse
public void sendProposalResponse(Response response, int distance) throws Exception
- Throws:
Exception
-
receive
public Response receive(Proposal proposal, int distance) throws Exception
- Throws:
Exception
-
addGroupBinding
public void addGroupBinding(GroupBinding groupBinding)
-
getProposal
public Response getProposal(SimpleString fullID, boolean touchTime)
-
remove
public void remove(SimpleString groupid, SimpleString clusterName)
-
onNotification
public void onNotification(Notification notification)
-
isStarted
public boolean isStarted()
-
-