Uses of Interface
org.jgroups.Message
-
Packages that use Message Package Description org.jgroups Provides top-level public JGroups classes such as Channel, Message, etc.org.jgroups.auth org.jgroups.blocks Provides building blocks that are layered on top of channels.org.jgroups.demos Provides demonstrations of JGroups functionality.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.dns org.jgroups.protocols.pbcast org.jgroups.protocols.relay 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 Message in org.jgroups
Classes in org.jgroups that implement Message Modifier and Type Class Description classBaseMessageA common superclass for allMessageimplementations.classBatchMessageA message that contains a batch of messages.classBytesMessageAMessagecontaining a byte array as payload.classCompositeMessageA message composed of multiple messages.classEmptyMessageAMessagewithout a payload; optimized for sending only headers (e.g.classFragmentedMessageA message which refers to another message, but only marshals (Streamable.writeTo(DataOutput)) a part of the original message, starting at a givenBytesMessage.offsetand marshalling onlyBytesMessage.lengthbytes.classLongMessageMessage with a long as payload.classNioMessageAMessagewith a (heap-based or direct)ByteBufferas payload.
Note that the payload of an NioMessage must not be modified after sending it (ie.classObjectMessageAMessagewith an object as payload.Fields in org.jgroups declared as Message Modifier and Type Field Description protected Message[]BatchMessage. msgsprotected Message[]CompositeMessage. msgsprotected MessageFragmentedMessage. original_msgFields in org.jgroups with type parameters of type Message Modifier and Type Field Description protected static java.util.Map<java.lang.Short,java.util.function.Supplier<? extends Message>>MessageFactory. mapMethods in org.jgroups with type parameters of type Message Modifier and Type Method Description static <T extends Message>
TMessageFactory. create(short type)Creates a message based on the given ID<T extends Message>
TBatchMessage. get(int index)<T extends Message>
TCompositeMessage. get(int index)Methods in org.jgroups that return Message Modifier and Type Method Description MessageBaseMessage. clearFlag(Message.Flag... flags)Clears a number of flags in a messageMessageBaseMessage. clearFlag(Message.TransientFlag... flags)MessageMessage. clearFlag(Message.Flag... flags)Removes a number of flags from the message.MessageMessage. clearFlag(Message.TransientFlag... flags)Removes a number of transient flags from the message.MessageBaseMessage. clearHeaders()Removes all headers: use carefully!MessageMessage. clearHeaders()Removes all headers: use carefully!MessageBaseMessage. copy(boolean copy_payload, boolean copy_headers)Copies the source- and destination addresses, flags and headers (if copy_headers is true).
If copy_payload is set, then methodBaseMessage.copyPayload(Message)of the subclass will be called, which is responsible for copying the payload specific to that message type.
Note that for headers, only the arrays holding references to the headers are copied, not the headers themselves ! The consequence is that the headers array of the copy hold the *same* references as the original, so do *not* modify the headers ! If you want to change a header, copy it and callputHeader(short,Header)again.MessageMessage. copy(boolean copy_payload, boolean copy_headers)Copies a messageprotected MessageBaseMessage. copyPayload(Message copy)Copies the payloadprotected MessageBytesMessage. copyPayload(Message copy)Copies the byte array.protected MessageFragmentedMessage. copyPayload(Message copy)protected MessageLongMessage. copyPayload(Message copy)protected MessageNioMessage. copyPayload(Message copy)protected MessageObjectMessage. copyPayload(Message copy)default MessageMessage. dest(Address new_dest)protected MessageBatchMessage. ensureSameDest(Message msg)protected MessageCompositeMessage. ensureSameDest(Message msg)Message[]BatchMessage. getMessages()MessageFragmentedMessage. getOriginalMessage()MessageBaseMessage. headers(Header[] hdrs)MessageBatchMessage.BatchMessageIterator. next()MessageCompositeMessage.CompositeMessageIterator. next()MessageBaseMessage. putHeader(short id, Header hdr)Puts a header given an ID into the hashmap.protected MessageBaseMessage. putHeader(short id, Header hdr, boolean replace_if_present)MessageMessage. putHeader(short id, Header hdr)Adds a header to the messageMessageBaseMessage. putHeaderIfAbsent(short id, Header hdr)MessageMessage. putHeaderIfAbsent(short id, Header hdr)Adds a header to a message if not presentdefault MessageMessage. setArray(byte[] b)MessageMessage. setArray(byte[] b, int offset, int length)Sets the byte array in a message.
Throws an exception if the message does not have a byte[] array payload (hasArray()is false).
Note that this is a convenience method, as most messages are of typeBytesMessage.MessageMessage. setArray(ByteArray buf)Sets the byte array in a message.
Throws an exception if the message does not have a byte[] array payload (hasArray()is false).
Note that this is a convenience method, as most messages are of typeBytesMessage.MessageBaseMessage. setDest(Address new_dest)MessageMessage. setDest(Address new_dest)Sets the destination address to send the message to.MessageBaseMessage. setFlag(short flag, boolean transient_flags, boolean xor)MessageBaseMessage. setFlag(Message.Flag... flags)Sets a number of flags in a messageMessageBaseMessage. setFlag(Message.TransientFlag... flags)Same asBaseMessage.setFlag(Flag...)except that transient flags are not marshalleddefault MessageMessage. setFlag(short flag, boolean transient_flags)Sets the flags as a short; this way, multiple flags can be set in one operationMessageMessage. setFlag(short flag, boolean transient_flags, boolean xor)Sets the flags as a short; this way, multiple flags can be set in one operationMessageMessage. setFlag(Message.Flag... flags)Sets one or more flags (xor-ing existing flags)MessageMessage. setFlag(Message.TransientFlag... flags)Sets one or more transient flags (xor-ing).MessageMessage. setObject(java.lang.Object obj)Sets an object in a message.MessageBaseMessage. setPayload(java.lang.Object pl)MessageMessage. setPayload(java.lang.Object pl)Sets the payloadMessageBaseMessage. setSrc(Address new_src)MessageMessage. setSrc(Address new_src)Sets the address of the sender of this messagedefault MessageMessage. src(Address new_src)Methods in org.jgroups that return types with arguments of type Message Modifier and Type Method Description java.util.function.Supplier<Message>BatchMessage. create()java.util.function.Supplier<Message>BytesMessage. create()java.util.function.Supplier<Message>CompositeMessage. create()java.util.function.Supplier<Message>EmptyMessage. create()java.util.function.Supplier<Message>FragmentedMessage. create()java.util.function.Supplier<? extends Message>LongMessage. create()java.util.function.Supplier<Message>NioMessage. create()java.util.function.Supplier<Message>ObjectMessage. create()java.util.Iterator<Message>BatchMessage. iterator()java.util.Iterator<Message>CompositeMessage. iterator()Methods in org.jgroups with parameters of type Message Modifier and Type Method Description BatchMessageBatchMessage. add(Message msg)Adds the message at the end of the array.BatchMessageBatchMessage. add(Message... messages)CompositeMessageCompositeMessage. add(Message msg)Adds the message at the end of the array.CompositeMessageCompositeMessage. add(Message... messages)protected MessageBaseMessage. copyPayload(Message copy)Copies the payloadprotected MessageBytesMessage. copyPayload(Message copy)Copies the byte array.protected MessageFragmentedMessage. copyPayload(Message copy)protected MessageLongMessage. copyPayload(Message copy)protected MessageNioMessage. copyPayload(Message copy)protected MessageObjectMessage. copyPayload(Message copy)java.lang.ObjectJChannel. down(Message msg)java.util.concurrent.CompletableFuture<java.lang.Object>JChannel. down(Message msg, boolean async)Sends a message down asynchronously.protected MessageBatchMessage. ensureSameDest(Message msg)protected MessageCompositeMessage. ensureSameDest(Message msg)default voidReceiver. receive(Message msg)Called when a message is received.JChannelJChannel. send(Message msg)Sends a message.java.lang.ObjectJChannel. up(Message msg)java.lang.ObjectUpHandler. up(Message msg)Method parameters in org.jgroups with type arguments of type Message Modifier and Type Method Description CompositeMessageCompositeMessage. add(java.util.Collection<Message> messages)static voidMessageFactory. register(short type, java.util.function.Supplier<? extends Message> generator)Registers a new creator of messagesConstructors in org.jgroups with parameters of type Message Constructor Description BatchMessage(Address dest, Address src, Message[] msgs, int index)CompositeMessage(Address dest, Message... messages)FragmentedMessage(Message original_msg, int off, int len)Constructor parameters in org.jgroups with type arguments of type Message Constructor Description CompositeMessage(Address dest, java.util.Collection<Message> messages) -
Uses of Message in org.jgroups.auth
Methods in org.jgroups.auth with parameters of type Message Modifier and Type Method Description abstract booleanAuthToken. authenticate(AuthToken token, Message msg)This method should be implemented to perform the actual authentication of joining members.booleanFixedMembershipToken. authenticate(AuthToken token, Message msg)booleanKrb5Token. authenticate(AuthToken token, Message msg)booleanRegexMembership. authenticate(AuthToken token, Message msg)booleanX509Token. authenticate(AuthToken token, Message msg) -
Uses of Message in org.jgroups.blocks
Fields in org.jgroups.blocks declared as Message Modifier and Type Field Description protected MessageRequestCorrelator.ResponseImpl. reqMethods in org.jgroups.blocks that return Message Modifier and Type Method Description protected static MessageRequestCorrelator. makeReply(Message msg)Methods in org.jgroups.blocks with parameters of type Message Modifier and Type Method Description protected <T> UnicastRequest<T>MessageDispatcher. _sendMessage(Message msg, RequestOptions opts)protected <T> GroupRequest<T>MessageDispatcher. cast(java.util.Collection<Address> dests, Message msg, RequestOptions options, boolean block_for_results)<T> RspList<T>MessageDispatcher. castMessage(java.util.Collection<Address> dests, Message msg, RequestOptions opts)Sends a message to all members and expects responses from members in dests (if non-null).<T> java.util.concurrent.CompletableFuture<RspList<T>>MessageDispatcher. castMessageWithFuture(java.util.Collection<Address> dests, Message msg, RequestOptions opts)Sends a message to all members and expects responses from members in dests (if non-null).protected voidRequestCorrelator. dispatch(Message msg, RequestCorrelator.Header hdr)java.lang.ObjectMessageDispatcher.ProtocolAdapter. down(Message msg)TRequest. execute(Message msg, boolean block_for_results)java.lang.ObjectMessageDispatcher. handle(Message msg)voidMessageDispatcher. handle(Message request, Response response)java.lang.ObjectRequestHandler. handle(Message msg)Processes a request synchronously, ie.default voidRequestHandler. handle(Message request, Response response)Processes a request asynchronously.java.lang.ObjectRpcDispatcher. handle(Message req)Message contains MethodCall.protected voidRequestCorrelator. handleRequest(Message req, RequestCorrelator.Header hdr)Handle a request msg for this correlatorprotected voidRequestCorrelator. handleResponse(Message rsp, RequestCorrelator.Header hdr)protected static MessageRequestCorrelator. makeReply(Message msg)voidReplicatedTree. receive(Message msg)Callback.booleanRequestCorrelator. receiveMessage(Message msg)Handles a message coming from a layer belowvoidRequestCorrelator.ResponseImpl. send(Message reply, boolean is_exception)voidResponse. send(Message reply, boolean is_exception)Similar toResponse.send(Object,boolean), but passes a message instead of an object.protected voidRequestCorrelator. sendAnycastRequest(Message req, java.util.Collection<Address> dest_mbrs)<T> TMessageDispatcher. sendMessage(Message msg, RequestOptions opts)Sends a unicast message and - depending on the options - returns a result<T> java.util.concurrent.CompletableFuture<T>MessageDispatcher. sendMessageWithFuture(Message msg, RequestOptions opts)Sends a unicast message to the target defined by msg.getDest() and returns a future<T> voidRequestCorrelator. sendMulticastRequest(java.util.Collection<Address> dest_mbrs, Message msg, Request<T> req, RequestOptions opts)Sends a request to a group.protected voidRequestCorrelator. sendReply(Message req, long req_id, java.lang.Object reply, boolean is_exception)voidGroupRequest. sendRequest(Message msg)protected voidGroupRequest. sendRequest(Message msg, java.util.Collection<Address> targetMembers)abstract voidRequest. sendRequest(Message req)voidUnicastRequest. sendRequest(Message msg)protected voidRequestCorrelator. sendResponse(Message rsp, long req_id, boolean is_exception)<T> voidRequestCorrelator. sendUnicastRequest(Message msg, Request<T> req, RequestOptions opts)Sends a request to a single destinationjava.lang.ObjectMessageDispatcher.ProtocolAdapter. up(Message msg)Constructors in org.jgroups.blocks with parameters of type Message Constructor Description ResponseImpl(Message req, long req_id) -
Uses of Message in org.jgroups.demos
Methods in org.jgroups.demos with parameters of type Message Modifier and Type Method Description voidChat. receive(Message msg)voidDraw. receive(Message msg)voidRelayDemo. receive(Message msg) -
Uses of Message in org.jgroups.fork
Methods in org.jgroups.fork with parameters of type Message Modifier and Type Method Description java.lang.ObjectForkChannel. down(Message msg)java.lang.ObjectForkProtocol. down(Message msg)java.lang.ObjectForkProtocolStack. down(Message msg)java.lang.ObjectUnknownForkHandler. handleUnknownForkChannel(Message message, java.lang.String forkChannelId)Handle a message that refers to an unknown fork channeljava.lang.ObjectUnknownForkHandler. handleUnknownForkStack(Message message, java.lang.String forkStackId)Handle a message that refers to an unknown fork stackForkChannelForkChannel. send(Message msg)protected voidForkChannel. setHeader(Message msg)java.lang.ObjectForkProtocolStack. up(Message msg) -
Uses of Message in org.jgroups.protocols
Fields in org.jgroups.protocols declared as Message Modifier and Type Field Description protected Message[]RingBufferBundlerLockless. bufprotected Message[]RingBufferBundlerLockless2. bufprotected static MessageReliableMulticast. DUMMY_OOB_MSGprotected static MessageReliableUnicast. DUMMY_OOB_MSGprotected static MessageUNICAST3. DUMMY_OOB_MSGprotected Message[]FRAG2.FragEntry. fragmentsprotected MessageFRAG3.FragEntry. msgstatic MessageRingBufferBundlerLockless2. NULL_MSGprotected Message[]RemoveQueueBundler. remove_queueFields in org.jgroups.protocols with type parameters of type Message Modifier and Type Field Description protected static java.util.function.BiConsumer<MessageBatch,Message>ReliableMulticast. BATCH_ACCUMULATORprotected static java.util.function.BiConsumer<MessageBatch,Message>ReliableUnicast. BATCH_ACCUMULATORprotected static java.util.function.BiConsumer<MessageBatch,Message>SEQUENCER2. BATCH_ACCUMULATORprotected static java.util.function.BiConsumer<MessageBatch,Message>UNICAST3. BATCH_ACCUMULATORprotected java.util.Queue<Message>ReliableMulticast. become_server_queueprotected Buffer<Message>ReliableMulticast.Entry. bufprotected Buffer<Message>ReliableUnicast.Entry. bufprotected static java.util.function.Predicate<Message>UNICAST3. dont_loopback_filterprotected java.util.List<java.util.function.Predicate<Message>>DROP. down_filtersprotected java.util.List<Message>SHUFFLE. down_msgsprotected java.util.concurrent.BlockingQueue<Message>BATCH2. down_queueprotected java.util.function.Predicate<Message>ReliableUnicast. drop_oob_and_dont_loopback_msgs_filterprotected java.util.function.Predicate<Message>UNICAST3. drop_oob_and_dont_loopback_msgs_filterprotected java.util.function.Predicate<Message>HDRS. filterprotected java.util.function.Predicate<Message>REVERSE. filterprotected java.util.function.Predicate<Message>REVERSE2. filterprotected java.util.NavigableMap<java.lang.Long,Message>SEQUENCER. forward_tableMaintains messages forwarded to the coord which which no ack has been received yet.protected java.util.function.Function<Address,java.util.List<Message>>BaseBundler. FUNCprotected static java.util.function.Function<? super java.lang.String,? extends java.util.List<Message>>FORK. FUNCprotected java.util.concurrent.BlockingQueue<Message>SEQUENCER2. fwd_queueprotected java.util.function.Predicate<Message>FRAG. HAS_FRAG_HEADERprotected java.util.function.Predicate<Message>FRAG2. HAS_FRAG_HEADERprotected java.util.function.Predicate<Message>FRAG3. HAS_FRAG_HEADERprotected java.util.function.Predicate<Message>FailureDetection. HAS_HEADERprotected java.util.function.Predicate<Message>ReliableMulticast. HAS_HEADERprotected Buffer<Message>ReliableMulticast. local_xmit_tableprotected java.util.Map<Address,Message>BARRIER. mcast_queueprotected java.util.Map<Address,java.util.List<Message>>BaseBundler. msgsKeys are destinations, values are lists of Messagesprotected Table<Message>UNICAST3.Entry. msgsprotected java.util.function.Predicate<Message>ReliableMulticast. no_dummy_and_no_oob_delivered_msgs_and_no_dont_loopback_msgsprotected java.util.Map<Address,java.util.List<Message>>MAKE_BATCH. oob_map_mcastprotected java.util.Map<Address,java.util.List<Message>>MAKE_BATCH. oob_map_ucastprotected java.util.Deque<Message>REVERSE. queueprotected java.util.Deque<Message>REVERSE2. queueprotected java.util.concurrent.BlockingQueue<Message>TransferQueueBundler. queueprotected RingBuffer<Message>RemoveQueueBundler. rbprotected RingBuffer<Message>RingBufferBundler. rbprotected Table<Message>SEQUENCER2. received_msgsprotected java.util.Map<Address,java.util.List<Message>>MAKE_BATCH. reg_map_mcastprotected java.util.Map<Address,java.util.List<Message>>MAKE_BATCH. reg_map_ucastprotected static java.util.function.Predicate<Message>ReliableMulticast. remove_filterprotected static java.util.function.Predicate<Message>ReliableUnicast. remove_filterprotected java.util.List<Message>BATCH2. remove_queueprotected java.util.List<Message>TransferQueueBundler. remove_queueprotected java.util.function.Consumer<Message>MFC_NB. send_functionprotected java.util.function.Consumer<Message>UFC_NB. send_functionprotected java.util.function.Function<Message,java.lang.Long>ReliableMulticast. SEQNO_GETTERprotected FastArray<Message>AlternatingBundler. target_listprotected java.util.Map<Address,Message>BARRIER. ucast_queueprotected java.util.List<java.util.function.Predicate<Message>>DROP. up_filtersprotected java.util.List<Message>SHUFFLE. up_msgsMethods in org.jgroups.protocols with type parameters of type Message Modifier and Type Method Description <T extends Buffer<Message>>
TReliableMulticast. getBuf(Address sender)Returns the receive window for sender; only used for testing.Methods in org.jgroups.protocols that return Message Modifier and Type Method Description protected MessageEncrypt. _decrypt(javax.crypto.Cipher cipher, java.security.Key key, Message msg, EncryptHeader hdr)protected MessageASYM_ENCRYPT. addKeysToMessage(Message msg, boolean copy, boolean add_secret_keys, Address serialize_only)Adds the public and/or encrypted shared keys to the payload of msg.protected MessageFRAG2. assembleMessage(Message[] fragments, boolean needs_deserialization, FragHeader hdr)Assembles all the message fragments into one message.protected MessageFRAG3.FragEntry. assembleMessage()Assembles all the fragments into one buffer.protected MessageFRAG4. assembleMessage(Message[] fragments, boolean needs_deserialization, FragHeader hdr)protected MessageEncrypt. decrypt(javax.crypto.Cipher cipher, Message msg)Does the actual work for decrypting - if version does not match current cipher then tries the previous cipherprotected MessageSERIALIZE. deserialize(Address sender, byte[] buf, int offset, int length)protected MessageEncrypt. encrypt(Message msg)protected static MessageCOMPRESS. messageFromByteArray(byte[] uncompressed_payload)protected MessageReliableMulticast. msgFromXmitRsp(Message msg, NakAckHeader hdr)MessageFRAG3.FragEntry. set(Message frag_msg, Frag3Header hdr)Adds a fragment to the full messageprotected MessageCOMPRESS. uncompress(Message msg, int original_size, boolean needs_deserialization)Returns a new message as a result of uncompressing msg, or null if msg couldn't be uncompressedprotected MessageFRAG2. unfragment(Message msg, FragHeader hdr)1.protected MessageFRAG3. unfragment(Message msg, Frag3Header hdr)1.Methods in org.jgroups.protocols that return types with arguments of type Message Modifier and Type Method Description protected java.util.Queue<Message>ReliableMulticast. becomeServerQueue()protected Buffer<Message>ReliableMulticast.Entry. buf()Buffer<Message>ReliableUnicast.Entry. buf()RingBuffer<Message>RingBufferBundler. buf()protected abstract Buffer<Message>ReliableUnicast. createBuffer(long initial_seqno)protected Buffer<Message>UNICAST4. createBuffer(long seqno)protected Table<Message>UNICAST3. createTable(long seqno)protected Buffer<Message>NAKACK3. createXmitWindow(long initial_seqno)protected Buffer<Message>NAKACK4. createXmitWindow(long initial_seqno)protected abstract Buffer<Message>ReliableMulticast. createXmitWindow(long initial_seqno)java.util.function.Predicate<Message>REVERSE. filter()java.util.function.Predicate<Message>REVERSE2. filter()Table<Message>UNICAST3. getSendWindow(Address target)Used for testing only!protected Buffer<Message>ReliableMulticast. sendBuf()Methods in org.jgroups.protocols with parameters of type Message Modifier and Type Method Description protected MessageEncrypt. _decrypt(javax.crypto.Cipher cipher, java.security.Key key, Message msg, EncryptHeader hdr)protected java.lang.ObjectBATCH2. _down(Message msg)protected java.lang.ObjectSimpleTCP. _down(Message msg)protected voidRingBufferBundler. _loopback(Address dest, Address sender, Message[] buf, int start_index, int end_index)protected voidBatchBundler. _send(Message msg)protected voidRingBufferBundler. _send(Address dest, Message msg, byte[] cluster_name, Message[] buf, int start, int end, java.util.List<Message> list)protected SHUFFLESHUFFLE. add(java.util.List<Message> queue, Message msg, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)protected voidPerDestinationBundler.SendBuffer. addAndSendIfSizeExceeded(Message msg)protected voidTransferQueueBundler. addAndSendIfSizeExceeded(Message msg)protected MessageASYM_ENCRYPT. addKeysToMessage(Message msg, boolean copy, boolean add_secret_keys, Address serialize_only)Adds the public and/or encrypted shared keys to the payload of msg.protected voidAlternatingBundler. addMessage(Message msg, int size)protected voidBaseBundler. addMessage(Message msg, int size)protected booleanBATCH.Buffer. addMessage(Message msg)protected booleanBATCH2.Buffer. addMessage(Message msg)protected booleanBatchBundler.Buffer. addMessage(Message msg)protected voidPerDestinationBundler.SendBuffer. addMessage(Message msg, int size)protected voidReliableUnicast. addMessage(ReliableUnicast.ReceiverEntry entry, Address sender, long seqno, Message msg)protected voidUNICAST3. addMessage(UNICAST3.ReceiverEntry entry, Address sender, long seqno, Message msg)protected ASYM_ENCRYPT.ProcessingASYM_ENCRYPT. addMetadata(Message msg, boolean add_secret_keys, Address include_secret_key_only_for, boolean attach_fetch_key_header)protected voidSIZE2. addSample(Message msg, DistributionSampler ds)protected booleanNAKACK4. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)protected booleanReliableMulticast. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)Adds the message to the send buffer.protected booleanReliableUnicast. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)Adds the message to the send buffer.protected MessageFRAG2. assembleMessage(Message[] fragments, boolean needs_deserialization, FragHeader hdr)Assembles all the message fragments into one message.protected MessageFRAG4. assembleMessage(Message[] fragments, boolean needs_deserialization, FragHeader hdr)protected voidSEQUENCER. broadcast(Message msg, boolean copy, Address original_sender, long seqno, boolean resend)protected voidSEQUENCER2. broadcast(Message msg, long seqno)protected MessageEncrypt. decrypt(javax.crypto.Cipher cipher, Message msg)Does the actual work for decrypting - if version does not match current cipher then tries the previous cipherprotected voidReliableMulticast. deliver(Message msg, Address sender, long seqno, ReliableMulticast.Entry entry, java.lang.String error_msg)protected voidSEQUENCER. deliver(Message msg, SEQUENCER.SequencerHeader hdr)protected voidSEQUENCER2. deliver(Message msg, SEQUENCER2.SequencerHeader hdr)protected voidReliableUnicast. deliverMessage(Message msg, Address sender, long seqno)protected voidUNICAST3. deliverMessage(Message msg, Address sender, long seqno)java.lang.ObjectASYM_ENCRYPT. down(Message msg)java.lang.ObjectAUTH. down(Message msg)java.lang.ObjectBATCH. down(Message msg)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.ObjectBATCH2. down(Message msg)java.lang.ObjectCLEAR_FLAGS. down(Message msg)java.lang.ObjectCOMPRESS. down(Message msg)We compress the payload if it is larger thanmin_size.java.lang.ObjectDAISYCHAIN. down(Message msg)java.lang.ObjectDELAY. down(Message msg)java.lang.ObjectDETECT_LOOPBACKS. down(Message msg)java.lang.ObjectDISCARD_PAYLOAD. down(Message msg)java.lang.ObjectDISCARD. down(Message msg)java.lang.ObjectDROP. down(Message msg)java.lang.ObjectDUPL. down(Message msg)java.lang.ObjectEncrypt. down(Message msg)java.lang.ObjectEXAMPLE. down(Message msg)java.lang.ObjectFailureDetection. down(Message msg)java.lang.ObjectFlowControl. down(Message msg)java.lang.ObjectFRAG. down(Message msg)java.lang.ObjectFRAG2. down(Message msg)java.lang.ObjectFRAG3. down(Message msg)java.lang.ObjectHDRS. down(Message msg)java.lang.ObjectNON_BLOCKING_SENDS. down(Message msg)java.lang.ObjectPERF. down(Message msg)java.lang.ObjectRATE_LIMITER. down(Message msg)java.lang.ObjectRATE_LIMITER2. down(Message msg)java.lang.ObjectRATE. down(Message msg)java.lang.ObjectRED. down(Message msg)java.lang.ObjectReliableMulticast. down(Message msg)java.lang.ObjectReliableUnicast. down(Message msg)java.lang.ObjectRSVP. down(Message msg)java.lang.ObjectSEQUENCER. down(Message msg)java.lang.ObjectSEQUENCER2. down(Message msg)java.lang.ObjectSERIALIZE. down(Message msg)java.lang.ObjectSHUFFLE. down(Message msg)java.lang.ObjectSimpleTCP. down(Message msg)java.lang.ObjectSIZE. down(Message msg)java.lang.ObjectSIZE2. down(Message msg)java.util.concurrent.CompletableFuture<java.lang.Object>SIZE2. down(Message msg, boolean async)java.lang.ObjectSNIFF. down(Message msg)java.lang.ObjectSTATS. down(Message msg)java.lang.ObjectTHREAD_COUNT. down(Message msg)java.lang.ObjectTIME. down(Message msg)java.lang.ObjectTP. down(Message msg)A message needs to be sent to a single member or all membersjava.lang.ObjectTRACE. down(Message msg)java.lang.ObjectUNICAST3. down(Message msg)protected booleanASYM_ENCRYPT. dropMulticastMessageFromNonMember(Message msg)protected voidDROP. dropped(Message m, boolean down)protected static voidSNIFF. dump(java.lang.String type, Message msg)protected MessageEncrypt. encrypt(Message msg)protected voidSEQUENCER. forward(Message msg, long seqno, boolean flush)protected voidSEQUENCER. forwardToCoord(long seqno, Message msg)protected voidFRAG2. fragment(Message msg)Send all fragments as separate messages (with same ID !).protected voidFRAG3. fragment(Message msg)Send all fragments as separate messages (with same ID !).protected voidFRAG4. fragment(Message msg)protected static GMS.GmsHeaderAUTH. getGMSHeader(Message msg)protected byte[]ASYM_ENCRYPT. getIv(Message msg)protected static JoinRspAUTH. getJoinResponse(Message msg)protected java.lang.ObjectDiscovery. handle(PingHeader hdr, Message msg)protected java.lang.ObjectMERGE3. handle(MERGE3.MergeHeader hdr, Message msg)protected booleanAUTH. handleAuthHeader(GMS.GmsHeader gms_hdr, AuthHeader auth_hdr, Message msg)Handles a GMS headerprotected voidReliableUnicast. handleDataReceived(Address sender, long seqno, short conn_id, boolean first, Message msg)Check whether the hashtable contains an entry e forsender(create if not).protected voidUNICAST3. handleDataReceived(Address sender, long seqno, short conn_id, boolean first, Message msg)Check whether the hashtable contains an entry e forsender(create if not).protected voidReliableUnicast. handleDataReceivedFromSelf(Address sender, long seqno, Message msg)Called when the sender of a message is the local member.protected voidUNICAST3. handleDataReceivedFromSelf(Address sender, long seqno, Message msg)Called when the sender of a message is the local member.protected abstract java.lang.ObjectFlowControl. handleDownMessage(Message msg, int length)protected java.lang.ObjectMFC_NB. handleDownMessage(Message msg, int length)protected java.lang.ObjectMFC. handleDownMessage(Message msg, int length)protected java.lang.ObjectUFC_NB. handleDownMessage(Message msg, int length)protected java.lang.ObjectUFC. handleDownMessage(Message msg, int length)protected java.lang.ObjectEncrypt. handleEncryptedMessage(Message msg)protected voidReliableMulticast. handleMessage(Message msg, NakAckHeader hdr)Finds the corresponding retransmit buffer and adds the message to it (according to seqno).protected voidFlowControl. handleUpEvent(Message msg, FcHeader hdr)protected voidReliableUnicast. handleUpEvent(Address sender, Message msg, UnicastHeader hdr)protected voidUNICAST3. handleUpEvent(Address sender, Message msg, UnicastHeader3 hdr)protected voidReliableMulticast. handleXmitRsp(Message msg, NakAckHeader hdr)protected voidBaseBundler. loopback(Address dest, Address sender, Message[] list, int len)protected voidBaseBundler. loopbackUnlessDontLoopbackIsSet(Message msg)protected intRingBufferBundler. marshalMessagesToSameDestination(Address dest, Message[] buf, int start_index, int end_index, int max_bundle_size, java.util.List<Message> list)protected intRingBufferBundlerLockless. marshalMessagesToSameDestination(Address dest, Message[] buf, int start_index, int available_msgs, int max_bundle_size)protected intRingBufferBundlerLockless2. marshalMessagesToSameDestination(Address dest, Message[] buf, int start_index, int end_index, int max_bundle_size)static ByteArrayFD_SOCK2. messageToBuffer(Message msg)protected static ByteArrayCOMPRESS. messageToByteArray(Message msg)protected MessageReliableMulticast. msgFromXmitRsp(Message msg, NakAckHeader hdr)protected booleanAUTH. needsAuthentication(Message msg, GMS.GmsHeader hdr)voidTP. passMessageUp(Message msg, byte[] cluster_name, boolean perform_cluster_name_matching, boolean multicast, boolean discard_own_mcast)protected voidUNBATCH_OOB. passUp(Message msg)protected static voidSNIFF. printPayload(Message msg, java.lang.StringBuilder sb)protected booleanASYM_ENCRYPT. processEncryptMessage(Message msg, EncryptHeader hdr, boolean retval)protected voidMAKE_BATCH. queue(Message msg)protected voidReliableMulticast. queueMessage(Message msg, long seqno)MsgStatsMsgStats. received(Message msg)protected voidSTATS. received(Message msg)protected voidASYM_ENCRYPT. removeKeysFromMessageAndInstall(Message msg, byte[] version)Removes the public and/or private keys from the payload of msg and installs them.protected voidReliableMulticast. resend(Message msg)protected voidReliableUnicast. resend(Message msg)protected voidUNICAST3. resend(Message msg)protected voidReliableUnicast. retransmit(Message msg)Called by the sender to resend messages for which no ACK has been received yetprotected voidUNICAST3. retransmit(Message msg)Called by the sender to resend messages for which no ACK has been received yetvoidBaseBundler. send(Message msg)voidBatchBundler. send(Message msg)voidBundler. send(Message msg)voidNoBundler. send(Message msg)voidPerDestinationBundler. send(Message msg)protected booleanPerDestinationBundler.SendBuffer. send(Message msg)protected booleanReliableMulticast. send(Message msg, Buffer<Message> win, boolean dont_loopback_set)protected booleanReliableUnicast. send(Message msg, ReliableUnicast.SenderEntry entry, boolean dont_loopback_set)voidRemoveQueueBundler. send(Message msg)voidRingBufferBundler. send(Message msg)voidRingBufferBundlerLockless. send(Message msg)voidRingBufferBundlerLockless2. send(Message msg)voidSenderSendsBundler. send(Message msg)voidTransferQueueBundler. send(Message msg)voidRingBufferBundler. sendBundledMessages(Message[] buf, int read_index, int available_msgs)Read and send messages in range [read-index ..protected intRingBufferBundlerLockless. sendBundledMessages(Message[] buf, int read_index, int available_msgs)Read and send messages in range [read-index ..protected intRingBufferBundlerLockless2. sendBundledMessages(Message[] buf, int read_index, int write_index)Read and send messages in range [read-index+1 ..protected voidTCPPING. sendDiscoveryRequest(Message req)protected voidBPING. sendMcastDiscoveryRequest(Message msg)protected voidMPING. sendMcastDiscoveryRequest(Message msg)protected voidPING. sendMcastDiscoveryRequest(Message msg)protected voidBaseBundler. sendMessageListArray(Address dest, Address src, Message[] list, int len, ByteArrayDataOutputStream out)protected voidBaseBundler. sendMultiple(Address dst, Address sender, Message[] list, int len, ByteArrayDataOutputStream out)protected voidBaseBundler. sendSingle(Address dst, Message msg, ByteArrayDataOutputStream out)protected voidBaseBundler. sendSingleMessage(Address dest, Message msg, ByteArrayDataOutputStream out)protected voidReliableMulticast. sendXmitRsp(Address dest, Message msg)Sends a message msg to the requester.MsgStatsMsgStats. sent(Message msg)protected voidSTATS. sent(Message msg)voidFRAG2.FragEntry. set(int frag_id, Message frag)adds on fragmentation buffer to the messageMessageFRAG3.FragEntry. set(Message frag_msg, Frag3Header hdr)Adds a fragment to the full messageprotected voidTP. setSourceAddress(Message msg)If the sender is null, set our own address.protected booleanDISCARD. shouldDropUpMessage(Message msg, Address sender)Checks if a message should be passed up, or notprotected longRATE. size(Message msg)protected ASYM_ENCRYPT.ProcessingASYM_ENCRYPT. skipDownMessage(Message msg)Processes a message with a GMS header (e.g.protected booleanASYM_ENCRYPT. skipUpMessage(Message msg)Checks if the message contains a public key (and adds it to pub_map if present) or an encrypted group key (and installs it if present)protected MessageCOMPRESS. uncompress(Message msg, int original_size, boolean needs_deserialization)Returns a new message as a result of uncompressing msg, or null if msg couldn't be uncompressedprotected MessageFRAG2. unfragment(Message msg, FragHeader hdr)1.protected MessageFRAG3. unfragment(Message msg, Frag3Header hdr)1.protected voidSEQUENCER. unwrapAndDeliver(Message msg, boolean flush_ack)Unmarshal the original message (in the payload) and then pass it up (unless already delivered)java.lang.ObjectASYM_ENCRYPT. up(Message msg)java.lang.ObjectAUTH. up(Message msg)An event was received from the layer below.java.lang.ObjectBARRIER. up(Message msg)java.lang.ObjectBATCH. up(Message msg)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.ObjectBATCH2. up(Message msg)java.lang.ObjectCLEAR_FLAGS. up(Message msg)java.lang.ObjectCOMPRESS. up(Message msg)If there is no header, we pass the message up.java.lang.ObjectCOUNTER. up(Message msg)java.lang.ObjectDAISYCHAIN. up(Message msg)java.lang.ObjectDELAY. up(Message msg)java.lang.ObjectDH_KEY_EXCHANGE. up(Message msg)java.lang.ObjectDISCARD. up(Message msg)java.lang.ObjectDiscovery. up(Message msg)java.lang.ObjectDROP. up(Message msg)java.lang.ObjectDUPL. up(Message msg)java.lang.ObjectEncrypt. up(Message msg)java.lang.ObjectEXAMPLE. up(Message msg)java.lang.ObjectFailureDetection. up(Message msg)java.lang.ObjectFD_SOCK. up(Message msg)java.lang.ObjectFD_SOCK2. up(Message msg)java.lang.ObjectFlowControl. up(Message msg)java.lang.ObjectFORK. up(Message msg)java.lang.ObjectFRAG. up(Message msg)java.lang.ObjectFRAG2. up(Message msg)java.lang.ObjectFRAG3. up(Message msg)java.lang.ObjectHDRS. up(Message msg)java.lang.ObjectMAKE_BATCH. up(Message msg)java.lang.ObjectMERGE3. up(Message msg)java.lang.ObjectNON_BLOCKING_SENDS. up(Message msg)java.lang.ObjectPERF. up(Message msg)java.lang.ObjectRATE. up(Message msg)java.lang.ObjectReliableMulticast. up(Message msg)java.lang.ObjectReliableUnicast. up(Message msg)java.lang.ObjectREVERSE. up(Message msg)java.lang.ObjectREVERSE2. up(Message msg)java.lang.ObjectRSVP. up(Message msg)java.lang.ObjectSEQUENCER. up(Message msg)java.lang.ObjectSEQUENCER2. up(Message msg)java.lang.ObjectSERIALIZE. up(Message msg)java.lang.ObjectSHUFFLE. up(Message msg)java.lang.ObjectSIZE. up(Message msg)java.lang.ObjectSIZE2. up(Message msg)java.lang.ObjectSNIFF. up(Message msg)java.lang.ObjectSTATS. up(Message msg)java.lang.ObjectSTOMP. up(Message msg)java.lang.ObjectTHREAD_COUNT. up(Message msg)java.lang.ObjectTIME. up(Message msg)java.lang.ObjectUNICAST3. up(Message msg)java.lang.ObjectVERIFY_SUSPECT. up(Message msg)java.lang.ObjectVERIFY_SUSPECT2. up(Message msg)Method parameters in org.jgroups.protocols with type arguments of type Message Modifier and Type Method Description protected voidRingBufferBundler. _send(Address dest, Message msg, byte[] cluster_name, Message[] buf, int start, int end, java.util.List<Message> list)protected static intReliableUnicast. accumulate(java.util.function.ToIntFunction<Buffer<Message>> func, java.util.Collection<? extends ReliableUnicast.Entry>... entries)protected static intUNICAST3. accumulate(java.util.function.ToIntFunction<Table<Message>> func, java.util.Collection<? extends UNICAST3.Entry>... entries)protected SHUFFLESHUFFLE. add(java.util.List<Message> queue, Message msg, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)protected SHUFFLESHUFFLE. add(java.util.List<Message> queue, Message msg, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)DROPDROP. addDownFilter(java.util.function.Predicate<Message> filter)protected voidReliableUnicast. addQueuedMessages(Address sender, ReliableUnicast.ReceiverEntry entry, java.util.Collection<Message> queued_msgs)protected voidUNICAST3. addQueuedMessages(Address sender, UNICAST3.ReceiverEntry entry, java.util.Collection<Message> queued_msgs)protected booleanNAKACK4. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)protected booleanNAKACK4. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)protected booleanReliableMulticast. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)Adds the message to the send buffer.protected booleanReliableMulticast. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)Adds the message to the send buffer.protected booleanReliableUnicast. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)Adds the message to the send buffer.protected booleanReliableUnicast. addToSendBuffer(Buffer<Message> win, long seq, Message msg, java.util.function.Predicate<Message> filter)Adds the message to the send buffer.DROPDROP. addUpFilter(java.util.function.Predicate<Message> filter)HDRSHDRS. filter(java.util.function.Predicate<Message> f)REVERSEREVERSE. filter(java.util.function.Predicate<Message> f)REVERSE2REVERSE2. filter(java.util.function.Predicate<Message> f)protected voidBARRIER. flushQueue(java.util.Map<Address,Message> queue)protected static Tuple<java.lang.Long,java.lang.Boolean>ReliableUnicast. getLowestSeqno(short prot_id, java.util.List<LongTuple<Message>> list)protected voidReliableUnicast. handleBatchReceived(ReliableUnicast.ReceiverEntry entry, Address sender, java.util.List<LongTuple<Message>> msgs, boolean oob, Address original_dest)protected voidUNICAST3. handleBatchReceived(UNICAST3.ReceiverEntry entry, Address sender, java.util.List<LongTuple<Message>> msgs, boolean oob, Address original_dest)protected voidBaseBundler. loopback(Address dest, Address sender, java.lang.Iterable<Message> list, int size)protected intRingBufferBundler. marshalMessagesToSameDestination(Address dest, Message[] buf, int start_index, int end_index, int max_bundle_size, java.util.List<Message> list)protected java.lang.StringReliableUnicast. printMessageList(java.util.List<LongTuple<Message>> list)protected java.lang.StringUNICAST3. printMessageList(java.util.List<LongTuple<Message>> list)protected voidReliableMulticast. removeAndDeliver(Buffer<Message> win, ReliableMulticast.Entry e, Address sender, boolean loopback, AsciiString cluster)Efficient way of checking whether another thread is already processing messages from sender.protected voidSEQUENCER2. removeAndDeliver(Table<Message> win, Address sender)protected voidUNICAST3. removeAndDeliver(Table<Message> win, Address sender, AsciiString cluster, int min_size)Try to remove as many messages as possible from the table as pass them up.DROPDROP. removeDownFilter(java.util.function.Predicate<Message> filter)DROPDROP. removeUpFilter(java.util.function.Predicate<Message> filter)protected SHUFFLESHUFFLE. reorderAndSend(java.util.List<Message> list, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)protected SHUFFLESHUFFLE. reorderAndSend(java.util.List<Message> list, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)protected booleanReliableMulticast. send(Message msg, Buffer<Message> win, boolean dont_loopback_set)protected voidNAKACK4. sendAck(Address to, Buffer<Message> win)protected voidReliableMulticast. sendAck(Address to, Buffer<Message> win)protected voidBaseBundler. sendMessageList(Address dest, Address src, java.util.List<Message> list, ByteArrayDataOutputStream out)protected voidPerDestinationBundler.SendBuffer. sendMessages(Address dest, Address src, java.util.List<Message> list)protected voidBaseBundler. sendMultiple(Address dst, Address sender, java.util.List<Message> list, ByteArrayDataOutputStream out)protected static longReliableMulticast. sizeOfAllMessages(Buffer<Message> win, boolean include_headers)Constructor parameters in org.jgroups.protocols with type arguments of type Message Constructor Description Entry(Buffer<Message> buf)Entry(short conn_id, Buffer<Message> buf)Entry(short conn_id, Table<Message> msgs)ReceiverEntry(Buffer<Message> received_msgs, short recv_conn_id, Address real_dest)ReceiverEntry(Table<Message> received_msgs, short recv_conn_id, Address real_dest)RingBufferBundler(RingBuffer<Message> rb) -
Uses of Message in org.jgroups.protocols.dns
Methods in org.jgroups.protocols.dns with parameters of type Message Modifier and Type Method Description protected voidDNS_PING. sendDiscoveryRequest(Message req) -
Uses of Message in org.jgroups.protocols.pbcast
Fields in org.jgroups.protocols.pbcast declared as Message Modifier and Type Field Description protected static MessageNAKACK2. DUMMY_OOB_MSGFields in org.jgroups.protocols.pbcast with type parameters of type Message Modifier and Type Field Description protected static java.util.function.BiConsumer<MessageBatch,Message>NAKACK2. BATCH_ACCUMULATORprotected java.util.Queue<Message>NAKACK2. become_server_queueprotected static java.util.function.Predicate<Message>NAKACK2. dont_loopback_filterprotected java.util.function.Predicate<Message>NAKACK2. HAS_HEADERprotected Table<Message>NAKACK2. local_xmit_tableprotected java.util.function.Predicate<Message>NAKACK2. no_dummy_and_no_oob_delivered_msgs_and_no_dont_loopback_msgsprotected java.util.function.Function<Message,java.lang.Long>NAKACK2. SEQNO_GETTERprotected java.util.concurrent.ConcurrentMap<Address,Table<Message>>NAKACK2. xmit_tableMap to store sent and received messages (keyed by sender)Methods in org.jgroups.protocols.pbcast that return Message Modifier and Type Method Description protected MessageNAKACK2. msgFromXmitRsp(Message msg, NakAckHeader2 hdr)Methods in org.jgroups.protocols.pbcast that return types with arguments of type Message Modifier and Type Method Description protected Table<Message>NAKACK2. createTable(long initial_seqno)Table<Message>NAKACK2. getWindow(Address sender)Returns the receive window for sender; only used for testing.Methods in org.jgroups.protocols.pbcast with parameters of type Message Modifier and Type Method Description protected voidNAKACK2. deliver(Message msg, Address sender, long seqno, java.lang.String error_msg)java.lang.ObjectNAKACK2. down(Message msg)java.lang.ObjectSTABLE. down(Message msg)protected java.lang.ObjectGMS. handle(GMS.GmsHeader hdr, Message msg)protected java.lang.ObjectStreamingStateTransfer. handle(StreamingStateTransfer.StateHeader hdr, Message msg)protected voidNAKACK2. handleMessage(Message msg, NakAckHeader2 hdr)Finds the corresponding retransmit buffer and adds the message to it (according to seqno).protected voidSTABLE. handleRegularMessage(Message msg)protected voidNAKACK2. handleXmitRsp(Message msg, NakAckHeader2 hdr)protected MessageNAKACK2. msgFromXmitRsp(Message msg, NakAckHeader2 hdr)protected voidNAKACK2. queueMessage(Message msg, long seqno)protected voidNAKACK2. resend(Message msg)protected voidNAKACK2. send(Message msg)Adds the message to the sent_msgs table and then passes it down the stack.protected voidGMS. sendViewChangeAndJoinResponse(Message view_change_msg, JoinRsp jr, java.util.Collection<Address> joiners)protected voidNAKACK2. sendXmitRsp(Address dest, Message msg)Sends a message msg to the requester.java.lang.ObjectGMS. up(Message msg)java.lang.ObjectNAKACK2. up(Message msg)java.lang.ObjectSTABLE. up(Message msg)java.lang.ObjectSTATE_TRANSFER. up(Message msg)java.lang.ObjectStreamingStateTransfer. up(Message msg)Method parameters in org.jgroups.protocols.pbcast with type arguments of type Message Modifier and Type Method Description protected voidNAKACK2. removeAndDeliver(Table<Message> buf, Address sender, boolean loopback, AsciiString cluster, int min_size)Efficient way of checking whether another thread is already processing messages from sender.protected static longNAKACK2. sizeOfAllMessages(Table<Message> buf, boolean include_headers) -
Uses of Message in org.jgroups.protocols.relay
Methods in org.jgroups.protocols.relay that return Message Modifier and Type Method Description protected MessageRELAY. copy(Message msg)Copies the message, but only the headers above the current protocol (RELAY) (or RpcDispatcher related headers)protected MessageRoute. createMessage(Address target, Address final_destination, Address original_sender, Message msg, java.util.Collection<java.lang.String> visited_sites)Methods in org.jgroups.protocols.relay with parameters of type Message Modifier and Type Method Description protected MessageRELAY. copy(Message msg)Copies the message, but only the headers above the current protocol (RELAY) (or RpcDispatcher related headers)protected MessageRoute. createMessage(Address target, Address final_destination, Address original_sender, Message msg, java.util.Collection<java.lang.String> visited_sites)protected voidRELAY2. deliver(Address dest, Address sender, Message msg)protected java.lang.ObjectRELAY3. deliver(Address next_dest, Message msg, boolean dont_relay)Sends the message to a local destination.protected java.lang.ObjectRELAY3. deliver(Address next_dest, Message msg, boolean dont_relay, boolean dont_loopback, boolean oob)protected voidRELAY2. deliverLocally(SiteAddress dest, SiteAddress sender, Message msg)java.lang.ObjectRELAY2. down(Message msg)java.lang.ObjectRELAY3. down(Message msg)protected voidRELAY2. forwardTo(Address next_dest, SiteAddress final_dest, Address original_sender, Message msg, boolean forward_to_current_coord)protected booleanRELAY3. handleAdminMessage(RelayHeader hdr, Message msg)Handles SITES_UP/SITES_DOWN/TOPO_REQ/TOPO_RSP messagesprotected voidRELAY2. handleMessage(RelayHeader hdr, Message msg)Called to handle a message received by the transportprotected abstract voidRELAY. handleRelayMessage(Message msg)protected voidRELAY2. handleRelayMessage(Message msg)Called to handle a message received by the relayerprotected voidRELAY3. handleRelayMessage(Message msg)Called to handle a message received from a different site (via a bridge channel)protected booleanRELAY3. mustBeRouted(Message msg)Determines if a message should be routed.protected java.lang.ObjectRELAY3. passUp(Message msg)Sends a message up the stack.protected java.lang.ObjectRELAY3. process(boolean down, Message msg)This method has all the routing logic, for both site masters and regular membersvoidBridge. receive(Message msg)voidRelayer2.Bridge. receive(Message msg)protected voidRELAY2. route(SiteAddress dest, SiteAddress sender, Message msg)Routes the message to the target destination, used by a site master (coordinator)protected java.lang.ObjectRELAY3. route(Message msg, java.util.Collection<java.lang.String> sites)Sends a message to the given sites, or all sites (excluding the local site)protected java.lang.ObjectRELAY3. routeThen(Message msg, java.util.List<java.lang.String> sites, java.util.function.Supplier<java.lang.Object> action)voidRoute. send(Address final_destination, Address original_sender, Message msg)voidRoute. send(Address final_destination, Address original_sender, Message msg, java.util.Collection<java.lang.String> visited_sites)protected voidRELAY2. sendToBridges(Address sender, Message msg, java.lang.String... excluded_sites)Sends the message via all bridges excluding the excluded_sites bridgesprotected java.lang.ObjectRELAY3. sendToLocalSiteMaster(Address sender, Message msg)java.lang.ObjectRELAY2. up(Message msg)java.lang.ObjectRELAY3. up(Message msg) -
Uses of Message in org.jgroups.stack
Fields in org.jgroups.stack with type parameters of type Message Modifier and Type Field Description protected static java.util.function.BiConsumer<java.lang.Short,Message>GossipRouter. MSG_CONSUMERMethods in org.jgroups.stack with parameters of type Message Modifier and Type Method Description protected booleanProtocol. accept(Message msg)Called by the default implementation ofProtocol.up(org.jgroups.util.MessageBatch)for each message to determine if the message should be removed from the message batch (and handled by the current protocol) or not.java.lang.ObjectProtocol. down(Message msg)A message is sent down the stack.java.util.concurrent.CompletableFuture<java.lang.Object>Protocol. down(Message msg, boolean async)Passes a message down asynchronously.java.lang.ObjectProtocolStack. down(Message msg)java.util.concurrent.CompletableFuture<java.lang.Object>ProtocolStack. down(Message msg, boolean async)booleanMessageProcessingPolicy. loopback(Message msg, boolean oob)Process a message that was not received from the transport but from above (e.g.booleanMessageProcessingPolicy. process(Message msg, boolean oob)Process a message received from the transportjava.lang.ObjectProtocol. up(Message msg)A single message was received.java.lang.ObjectProtocolStack. up(Message msg) -
Uses of Message in org.jgroups.util
Fields in org.jgroups.util declared as Message Modifier and Type Field Description protected MessageSubmitToThreadPool.SingleLoopbackHandler. msgprotected MessageSubmitToThreadPool.SingleMessageHandler. msgFields in org.jgroups.util with type parameters of type Message Modifier and Type Field Description protected static java.util.function.Function<Address,java.util.Queue<Message>>MessageCache. FUNCprotected java.util.Map<Address,java.util.Queue<Message>>MessageCache. mapprotected FastArray<Message>MessageBatch. messagesThe storage of the messages; removed messages have a null elementprotected FastArray<Message>MaxOneThreadPerSender.Entry. msg_queueprotected SizeBoundedQueue<Message>NonBlockingCredit. msg_queueprotected SizeBoundedQueue<Message>NonBlockingCreditMap. msg_queueprotected static java.util.function.Consumer<Message>NonBlockingCredit. NO_OP_SEND_FUNCTIONprotected static java.util.function.Consumer<Message>NonBlockingCreditMap. NO_OP_SEND_FUNCTIONprotected java.util.function.Consumer<Message>NonBlockingCredit. send_functionprotected java.util.function.Consumer<Message>NonBlockingCreditMap. send_functionMethods in org.jgroups.util with type parameters of type Message Modifier and Type Method Description <T extends Message>
TMessageBatch. first()<T extends Message>
TMessageBatch. last()Methods in org.jgroups.util that return Message Modifier and Type Method Description static MessageUtil. copy(Message msg, boolean copy_buffer, short starting_id, short... copy_only_ids)Copies a message.MessageSubmitToThreadPool.SingleMessageHandler. getMessage()static MessageUtil. messageFromBuffer(byte[] buf, int offset, int length)static MessageUtil. messageFromByteBuffer(byte[] buffer, int offset, int length)static MessageUtil. readMessage(java.io.DataInput in)Methods in org.jgroups.util that return types with arguments of type Message Modifier and Type Method Description FastArray<Message>MessageBatch. array()Returns the underlying message array.java.util.Collection<Message>MessageCache. drain(Address sender)java.util.Iterator<Message>MessageBatch. iterator()Iterator which iterates only over non-null messages, skipping null messagesjava.util.Iterator<Message>MessageBatch. iterator(java.util.function.Predicate<Message> filter)Iterates over all non-null message which match filterstatic java.util.List<Message>Util. readMessageList(java.io.DataInput in, short transport_id)java.util.stream.Stream<Message>MessageBatch. stream()java.util.stream.Stream<Message>MessageBatch. stream(java.util.function.Predicate<Message> p)java.util.stream.Stream<Message>MessageBatch. stream(java.util.function.Predicate<Message> p, boolean parallel)Methods in org.jgroups.util with parameters of type Message Modifier and Type Method Description MessageBatchMessageBatch. add(Message msg)MessageBatchMessageBatch. add(Message[] msgs, int num_msgs)Adds message to this batch from a message arrayMessageBatchMessageBatch. add(Message msg, boolean resize)Adds a message to the tableMessageBatchMessageBatch. add(Message msg, boolean resize, boolean determine_mode)Adds a message to the tableMessageCacheMessageCache. add(Address sender, Message msg)protected booleanNonBlockingCredit. addToQueue(Message msg, int length)protected booleanNonBlockingCreditMap. addToQueue(Message msg, int length)voidBundlerHelper. computeTime(java.lang.String key, Message msg)voidBundlerHelper. computeTime(java.lang.String key, Message[] list)static MessageUtil. copy(Message msg, boolean copy_buffer, short starting_id, short... copy_only_ids)Copies a message.booleanCreditMap. decrement(Message msg, int credits, long timeout)Decrements credits bytes from all.booleanNonBlockingCreditMap. decrement(Message msg, int credits, long timeout)booleanCredit. decrementIfEnoughCredits(Message msg, int credits, long timeout)booleanNonBlockingCredit. decrementIfEnoughCredits(Message msg, int credits, long timeout)Decrements the sender's credits by the size of the message.java.lang.ObjectMockTransport. down(Message msg)voidProtPerfHelper. downTime(java.lang.String cluster, Message msg, java.lang.String name)voidProtPerfHelper. downTime(Message msg, Protocol prot)static java.lang.StringUtil. getObject(Message msg)Tries to return a legible representation of a message's payloadprotected static ProtPerfHeaderProtPerfHelper. getOrAddHeader(Message msg)voidRTT. handleMessage(Message msg, TpHeader hdr)Called when a message (request or response) is receivedbooleanMaxOneThreadPerSender. loopback(Message msg, boolean oob)booleanPassRegularMessagesUpDirectly. loopback(Message msg, boolean oob)booleanSubmitToThreadPool. loopback(Message msg, boolean oob)static ByteArrayUtil. messageToBuffer(Message msg)static ByteArrayUtil. messageToByteBuffer(Message msg)protected booleanMaxOneThreadPerSender.Entry. process(Message msg, boolean loopback)protected booleanMaxOneThreadPerSender.MessageTable. process(Message msg, boolean loopback)booleanMaxOneThreadPerSender. process(Message msg, boolean oob)booleanPassRegularMessagesUpDirectly. process(Message msg, boolean oob)booleanSubmitToThreadPool. process(Message msg, boolean oob)voidMyReceiver. receive(Message msg)MessageBatchMessageBatch. set(Address dest, Address sender, Message[] msgs)voidBundlerHelper. setStartTime(Message msg)voidProtPerfHelper. setTime(Message msg, boolean down)voidProtPerfHelper. setTime(Message msg, long time, boolean down)voidProtPerfHelper. upTime(Message msg, Protocol prot)static voidUtil. writeMessage(Message msg, java.io.DataOutput dos, boolean multicast)static voidUtil. writeMessageList(Address dest, Address src, byte[] cluster_name, Message[] msgs, int offset, int length, java.io.DataOutput dos, boolean multicast)Method parameters in org.jgroups.util with type arguments of type Message Modifier and Type Method Description MessageBatchMessageBatch. add(java.util.Collection<Message> msgs)booleanMessageBatch. anyMatch(java.util.function.Predicate<Message> pred)voidBundlerHelper. computeTime(java.lang.String key, java.util.List<Message> list)voidProtPerfHelper. downTime(java.lang.String cluster, java.util.List<Message> list, java.lang.String name)static java.lang.StringUtil. getObjects(java.lang.Iterable<Message> it)java.util.Iterator<Message>MessageBatch. iterator(java.util.function.Predicate<Message> filter)Iterates over all non-null message which match filterstatic voidUtil. parse(byte[] buf, int offset, int length, java.util.function.BiConsumer<java.lang.Short,Message> msg_consumer, java.util.function.BiConsumer<java.lang.Short,MessageBatch> batch_consumer, java.util.function.Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip)static voidUtil. parse(java.io.InputStream input, java.util.function.BiConsumer<java.lang.Short,Message> msg_consumer, java.util.function.BiConsumer<java.lang.Short,MessageBatch> batch_consumer, java.util.function.Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip)MessageBatchMessageBatch. removeIf(java.util.function.Predicate<Message> filter, boolean match_all)java.util.stream.Stream<Message>MessageBatch. stream(java.util.function.Predicate<Message> p)java.util.stream.Stream<Message>MessageBatch. stream(java.util.function.Predicate<Message> p, boolean parallel)static voidUtil. writeMessageList(Address dest, Address src, byte[] cluster_name, java.util.List<Message> msgs, java.io.DataOutput dos, boolean multicast)Write a list of messages with the *same* destination and src addresses.static voidUtil. writeMessageList(Address dest, Address src, byte[] cluster_name, FastArray<Message> msgs, java.io.DataOutput dos, boolean multicast)Constructors in org.jgroups.util with parameters of type Message Constructor Description SingleLoopbackHandler(Message msg)SingleMessageHandler(Message msg)SingleMessageHandlerWithClusterName(Message msg, byte[] cluster_name)Constructor parameters in org.jgroups.util with type arguments of type Message Constructor Description MessageBatch(java.util.Collection<Message> msgs)MessageBatch(Address dest, Address sender, AsciiString cluster_name, boolean multicast, java.util.Collection<Message> msgs)NonBlockingCredit(long credits, int max_size, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)NonBlockingCreditMap(long max_credits, int max_size, java.util.concurrent.locks.Lock lock, java.util.function.Consumer<Message> send_function)
-