Uses of Class
org.jgroups.util.MessageBatch
-
Packages that use MessageBatch Package Description org.jgroups Provides top-level public JGroups classes such as Channel, Message, etc.org.jgroups.blocks Provides building blocks that are layered on top of channels.org.jgroups.fork org.jgroups.protocols Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.org.jgroups.protocols.pbcast org.jgroups.protocols.relay org.jgroups.protocols.rules org.jgroups.stack Support for managing protocol stacks.org.jgroups.util Provides useful functionality which cannot be assigned to any particular other package. -
-
Uses of MessageBatch in org.jgroups
Methods in org.jgroups with parameters of type MessageBatch Modifier and Type Method Description default voidMessageListener. receive(MessageBatch batch)Called when a batch of messages is receivedvoidReceiverAdapter. receive(MessageBatch batch)JChannelJChannel. up(MessageBatch batch)Callback invoked by the protocol stack to deliver a message batchdefault voidUpHandler. up(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.blocks
Methods in org.jgroups.blocks with parameters of type MessageBatch Modifier and Type Method Description voidRequestCorrelator. receiveMessageBatch(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.fork
Methods in org.jgroups.fork with parameters of type MessageBatch Modifier and Type Method Description voidForkProtocolStack. up(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.protocols
Fields in org.jgroups.protocols with type parameters of type MessageBatch Modifier and Type Field Description protected static java.util.function.BiConsumer<MessageBatch,Message>SEQUENCER2. BATCH_ACCUMULATORprotected static java.util.function.BiConsumer<MessageBatch,Message>UNICAST3. BATCH_ACCUMULATORMethods in org.jgroups.protocols with parameters of type MessageBatch Modifier and Type Method Description voidEncrypt.Decrypter. accept(Message msg, MessageBatch batch)protected SHUFFLESHUFFLE. add(java.util.List<Message> queue, MessageBatch batch, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)protected voidSEQUENCER2. deliverBatch(MessageBatch batch)protected voidUNICAST3. deliverBatch(MessageBatch batch)protected voidUNICAST3. handleBatchFromSelf(MessageBatch batch, UNICAST3.Entry entry)protected static intSIZE. numHeaders(MessageBatch batch)voidTP. passBatchUp(MessageBatch batch, boolean perform_cluster_name_matching, boolean discard_own_mcast)protected voidTP. processBatch(MessageBatch batch, boolean oob, boolean internal)protected static voidSHUFFLE. shuffle(MessageBatch batch)protected longRATE. size(MessageBatch batch)voidASYM_ENCRYPT. up(MessageBatch batch)voidAUTH. up(MessageBatch batch)voidBARRIER. up(MessageBatch batch)voidCOMPRESS. up(MessageBatch batch)voidDAISYCHAIN. up(MessageBatch batch)voidDELAY. up(MessageBatch batch)voidDELIVERY_TIME. up(MessageBatch batch)voidDH_KEY_EXCHANGE. up(MessageBatch batch)voidDISCARD. up(MessageBatch batch)voidDROP. up(MessageBatch batch)voidDUPL. up(MessageBatch batch)voidEncrypt. up(MessageBatch batch)voidEXAMPLE. up(MessageBatch batch)voidFailureDetection. up(MessageBatch batch)voidFD. up(MessageBatch batch)voidFlowControl. up(MessageBatch batch)voidFORK. up(MessageBatch batch)voidFRAG. up(MessageBatch batch)voidFRAG2. up(MessageBatch batch)voidFRAG3. up(MessageBatch batch)voidHDRS. up(MessageBatch batch)voidMAKE_BATCH. up(MessageBatch batch)voidNAMING. up(MessageBatch batch)voidPERF. up(MessageBatch batch)voidRATE. up(MessageBatch batch)voidRELAY. up(MessageBatch batch)Deprecated.voidREVERSE. up(MessageBatch batch)voidRSVP. up(MessageBatch batch)voidSASL. up(MessageBatch batch)Deprecated.voidSEQUENCER. up(MessageBatch batch)voidSEQUENCER2. up(MessageBatch batch)voidSERIALIZE. up(MessageBatch batch)voidSHUFFLE. up(MessageBatch batch)voidSIZE. up(MessageBatch batch)voidSNIFF. up(MessageBatch batch)voidSTATS. up(MessageBatch batch)voidSTOMP. up(MessageBatch batch)voidTIME. up(MessageBatch batch)Dividing the delivery time for a batch by the batch size is problematic, e.g.voidTRACE. up(MessageBatch batch)voidUNICAST3. up(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.protocols.pbcast
Fields in org.jgroups.protocols.pbcast with type parameters of type MessageBatch Modifier and Type Field Description protected static java.util.function.BiConsumer<MessageBatch,Message>NAKACK2. BATCH_ACCUMULATORMethods in org.jgroups.protocols.pbcast with parameters of type MessageBatch Modifier and Type Method Description protected voidNAKACK2. deliverBatch(MessageBatch batch)voidFLUSH. up(MessageBatch batch)voidNAKACK2. up(MessageBatch batch)voidSTABLE. up(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.protocols.relay
Methods in org.jgroups.protocols.relay with parameters of type MessageBatch Modifier and Type Method Description voidRELAY2. up(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.protocols.rules
Methods in org.jgroups.protocols.rules with parameters of type MessageBatch Modifier and Type Method Description voidSUPERVISOR. up(MessageBatch batch)Deprecated. -
Uses of MessageBatch in org.jgroups.stack
Methods in org.jgroups.stack with parameters of type MessageBatch Modifier and Type Method Description voidMessageProcessingPolicy. process(MessageBatch batch, boolean oob, boolean internal)Process a batch received from the transportvoidProtocol. up(MessageBatch batch)Sends up a multiple messages in aMessageBatch.voidProtocolStack. up(MessageBatch batch) -
Uses of MessageBatch in org.jgroups.util
Fields in org.jgroups.util declared as MessageBatch Modifier and Type Field Description protected MessageBatchMaxOneThreadPerSender.Entry. batchprotected MessageBatchSubmitToThreadPool.BatchHandler. batchFields in org.jgroups.util with type parameters of type MessageBatch Modifier and Type Field Description protected java.util.function.IntFunction<MessageBatch>MaxOneThreadPerSender.Entry. batch_creatorprotected static java.util.function.ToIntBiFunction<Message,MessageBatch>MessageBatch. length_visitorprotected static java.util.function.ToLongBiFunction<Message,MessageBatch>MessageBatch. total_size_visitorMethods in org.jgroups.util that return MessageBatch Modifier and Type Method Description MessageBatchMessageBatch. add(Message msg)MessageBatchMessageBatch. add(MessageBatch batch)MessageBatchMessageBatch. clear()MessageBatchMessageBatch. clusterName(AsciiString name)MessageBatchMessageBatch. dest(Address dest)MessageBatchMessageBatch. mode(MessageBatch.Mode mode)MessageBatchMessageBatch. multicast(boolean flag)static MessageBatch[]Util. readMessageBatch(java.io.DataInput in, boolean multicast)Reads a list of messages into 4 MessageBatches: regular OOB INTERNAL-OOB (INTERNAL and OOB) INTERNAL (INTERNAL)MessageBatchMessageBatch. remove(java.util.function.Predicate<Message> filter)Removes all messages which match filterMessageBatchMessageBatch. remove(Message msg)Removes the current message (found by indentity (==)) by nulling it in the message arrayMessageBatchMessageBatch. replace(java.util.function.Predicate<Message> filter, Message replacement, boolean match_all)Replaces all messages which match a given filter with a replacement messageMessageBatchMessageBatch. replace(Message existing_msg, Message new_msg)Replaces a message in the batch with another oneMessageBatchMessageBatch. reset()MessageBatchMessageBatch. sender(Address sender)MessageBatchMessageBatch. setClusterName(AsciiString name)MessageBatchMessageBatch. setDest(Address dest)MessageBatchMessageBatch. setMode(MessageBatch.Mode mode)MessageBatchMessageBatch. setSender(Address sender)Methods in org.jgroups.util with parameters of type MessageBatch Modifier and Type Method Description MessageBatchMessageBatch. add(MessageBatch batch)intMessageBatch. add(MessageBatch batch, boolean resize)Adds another batch to this oneprotected booleanMaxOneThreadPerSender.Entry. allowedToSubmitToThreadPool(MessageBatch msg_batch)protected voidMaxOneThreadPerSender.Entry. process(MessageBatch batch)protected voidMaxOneThreadPerSender.MessageTable. process(MessageBatch batch)voidMaxOneThreadPerSender. process(MessageBatch batch, boolean oob, boolean internal)voidSubmitToThreadPool. process(MessageBatch batch, boolean oob, boolean internal)protected voidSubmitToThreadPool. removeAndDispatchNonBundledMessages(MessageBatch oob_batch)Removes messages with flags DONT_BUNDLE and OOB set and executes them in the oob or internal thread pool.protected voidMaxOneThreadPerSender.Entry. submit(MessageBatch mb)intMessageBatch. transferFrom(MessageBatch other, boolean clear)Transfers messages from other to this batch.protected booleanMaxOneThreadPerSender.Entry. workAvailable(MessageBatch msg_batch)Called byMaxOneThreadPerSender.BatchHandlerLoop.Method parameters in org.jgroups.util with type arguments of type MessageBatch Modifier and Type Method Description voidMessageBatch. forEach(java.util.function.BiConsumer<Message,MessageBatch> consumer)<T> java.util.Collection<T>MessageBatch. map(java.util.function.BiFunction<Message,MessageBatch,T> visitor)Applies a function to all messages and returns a list of the function resultsConstructors in org.jgroups.util with parameters of type MessageBatch Constructor Description BatchHandler(MessageBatch batch)BatchHandlerLoop(MessageBatch batch, MaxOneThreadPerSender.Entry entry, boolean loopback)Constructor parameters in org.jgroups.util with type arguments of type MessageBatch Constructor Description Entry(java.util.function.IntFunction<MessageBatch> creator)
-