Class MessageGroupDispatchPolicy
java.lang.Object
com.swiftmq.impl.queue.standard.cluster.MessageGroupDispatchPolicy
- All Implemented Interfaces:
DispatchPolicy
,DispatchPolicyListener
public class MessageGroupDispatchPolicy
extends Object
implements DispatchPolicy, DispatchPolicyListener
-
Constructor Summary
ConstructorDescriptionMessageGroupDispatchPolicy
(SwiftletContext ctx, Entity myEntity, String clusteredQueueName, DispatchPolicy parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocalMetric
(QueueMetric metric) void
addMetric
(String routerName, ClusteredQueueMetric metric) void
close()
protected MessageGroupEntry
createNewGroupEntry
(Object value) protected void
void
dispatchQueueRemoved
(String queueName) getNextSendQueue
(MessageImpl message) boolean
boolean
void
void
receiverCountChanged
(AbstractQueue abstractQueue, int receiverCount) void
removeLocalMetric
(QueueMetric metric) void
removeMetric
(String routerName) protected void
reset()
void
void
toString()
protected void
-
Constructor Details
-
MessageGroupDispatchPolicy
public MessageGroupDispatchPolicy(SwiftletContext ctx, Entity myEntity, String clusteredQueueName, DispatchPolicy parent)
-
-
Method Details
-
reset
protected void reset() -
getClusteredQueueName
-
setGroups
-
getGroups
-
performTimeAction
public void performTimeAction() -
setDispatchPolicyListener
- Specified by:
setDispatchPolicyListener
in interfaceDispatchPolicy
-
dispatchQueueRemoved
- Specified by:
dispatchQueueRemoved
in interfaceDispatchPolicyListener
-
addLocalMetric
- Specified by:
addLocalMetric
in interfaceDispatchPolicy
-
removeLocalMetric
- Specified by:
removeLocalMetric
in interfaceDispatchPolicy
-
getLocalMetric
- Specified by:
getLocalMetric
in interfaceDispatchPolicy
-
addMetric
- Specified by:
addMetric
in interfaceDispatchPolicy
-
removeMetric
- Specified by:
removeMetric
in interfaceDispatchPolicy
-
isReceiverSomewhere
public boolean isReceiverSomewhere()- Specified by:
isReceiverSomewhere
in interfaceDispatchPolicy
-
isMessageBasedDispatch
public boolean isMessageBasedDispatch()- Specified by:
isMessageBasedDispatch
in interfaceDispatchPolicy
-
getNextSendQueue
- Specified by:
getNextSendQueue
in interfaceDispatchPolicy
-
createNewGroupEntry
-
updateGroupEntry
-
deleteGroupEntry
-
getNextSendQueue
- Specified by:
getNextSendQueue
in interfaceDispatchPolicy
-
getNextReceiveQueue
- Specified by:
getNextReceiveQueue
in interfaceDispatchPolicy
-
receiverCountChanged
public void receiverCountChanged(AbstractQueue abstractQueue, int receiverCount) -
close
public void close()- Specified by:
close
in interfaceDispatchPolicy
-
toString
-