Class UnbatchOOBBatches
java.lang.Object
org.jgroups.util.SubmitToThreadPool
org.jgroups.util.MaxOneThreadPerSender
org.jgroups.util.UnbatchOOBBatches
- All Implemented Interfaces:
Lifecycle, MessageProcessingPolicy
Same as
MaxOneThreadPerSender, but for OOB message batches, every message of the batch is passed to the
thread pool separately (https://issues.redhat.com/browse/JGRP-2800).- Since:
- 5.4, 5.3.7
- Author:
- Bela Ban
-
Nested Class Summary
Nested classes/interfaces inherited from class MaxOneThreadPerSender
MaxOneThreadPerSender.Entry, MaxOneThreadPerSender.MessageTableNested classes/interfaces inherited from class SubmitToThreadPool
SubmitToThreadPool.BatchHandler, SubmitToThreadPool.SingleMessageHandler -
Field Summary
FieldsFields inherited from class MaxOneThreadPerSender
batch_capacity, mcasts, queue_capacity, ucastsFields inherited from class SubmitToThreadPool
log, tp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(MessageBatch batch, boolean oob) Process a batch received from the transportMethods inherited from class MaxOneThreadPerSender
batchCapacity, batchCapacity, destroy, dump, loopback, loopback, process, queueCapacity, queueCapacity, reset, viewChangeMethods inherited from class SubmitToThreadPool
getTransport, init, removeAndDispatchNonBundledMessages
-
Field Details
-
max_size
protected int max_size
-
-
Constructor Details
-
UnbatchOOBBatches
public UnbatchOOBBatches()
-
-
Method Details
-
process
Description copied from interface:MessageProcessingPolicyProcess a batch received from the transport- Specified by:
processin interfaceMessageProcessingPolicy- Overrides:
processin classMaxOneThreadPerSender- Parameters:
batch- the batchoob- true if the batch contains only OOB messages- Returns:
-