Class PassAllMessagesUpDirectly
java.lang.Object
org.jgroups.util.SubmitToThreadPool
org.jgroups.util.PassAllMessagesUpDirectly
- All Implemented Interfaces:
Lifecycle, MessageProcessingPolicy
MessageProcessingPolicy which passes all messages and message batches up directly
(on the same thread). This allows for better debugging of wire format issues (entire stack traces down to the
read socket).- Since:
- 5.5.3
- Author:
- Bela Ban
-
Nested Class Summary
Nested classes/interfaces inherited from class SubmitToThreadPool
SubmitToThreadPool.BatchHandler, SubmitToThreadPool.SingleMessageHandler -
Field Summary
Fields inherited from class SubmitToThreadPool
log, tp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanProcess a message that was not received from the transport but from above (e.g.booleanloopback(MessageBatch batch, boolean oob) booleanProcess a message received from the transportbooleanprocess(MessageBatch batch, boolean oob) Process a batch received from the transportMethods inherited from class SubmitToThreadPool
getTransport, init, removeAndDispatchNonBundledMessagesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MessageProcessingPolicy
destroy, reset
-
Constructor Details
-
PassAllMessagesUpDirectly
public PassAllMessagesUpDirectly()
-
-
Method Details
-
loopback
Description copied from interface:MessageProcessingPolicyProcess a message that was not received from the transport but from above (e.g. the channel or a protocol), and needs to be looped back up because (1) the destination address is null (every multicast message is looped back) or (2) the destination address is the sender's address (unicast message to self).
A message that is looped back can bypass cluster name matching.- Specified by:
loopbackin interfaceMessageProcessingPolicy- Overrides:
loopbackin classSubmitToThreadPool- Parameters:
msg- the message to be looped back up the stack.oob- true if the message is an OOB message- Returns:
-
loopback
- Specified by:
loopbackin interfaceMessageProcessingPolicy- Overrides:
loopbackin classSubmitToThreadPool
-
process
Description copied from interface:MessageProcessingPolicyProcess a message received from the transport- Specified by:
processin interfaceMessageProcessingPolicy- Overrides:
processin classSubmitToThreadPool- Parameters:
msg- the messageoob- true if the message is an OOB message- Returns:
-
process
Description copied from interface:MessageProcessingPolicyProcess a batch received from the transport- Specified by:
processin interfaceMessageProcessingPolicy- Overrides:
processin classSubmitToThreadPool- Parameters:
batch- the batchoob- true if the batch contains only OOB messages- Returns:
-