Class RoundRobinDispatchPolicy
java.lang.Object
com.swiftmq.impl.queue.standard.cluster.RoundRobinDispatchPolicy
- All Implemented Interfaces:
DispatchPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocalMetric
(QueueMetric metric) void
addMetric
(String routerName, ClusteredQueueMetric metric) void
close()
getNextSendQueue
(MessageImpl message) boolean
boolean
void
receiverCountChanged
(AbstractQueue abstractQueue, int receiverCount) void
removeLocalMetric
(QueueMetric metric) void
removeMetric
(String routerName) void
-
Constructor Details
-
RoundRobinDispatchPolicy
-
-
Method Details
-
setDispatchPolicyListener
- Specified by:
setDispatchPolicyListener
in interfaceDispatchPolicy
-
receiverCountChanged
public void receiverCountChanged(AbstractQueue abstractQueue, int receiverCount) -
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
-
getNextSendQueue
- Specified by:
getNextSendQueue
in interfaceDispatchPolicy
-
getNextReceiveQueue
- Specified by:
getNextReceiveQueue
in interfaceDispatchPolicy
-
close
public void close()- Specified by:
close
in interfaceDispatchPolicy
-