Uses of Interface
org.jgroups.Message
Packages that use Message
Package
Description
Provides top-level public JGroups classes such as Channel, Message, etc.
Provides building blocks that are layered on top of channels.
Provides demonstrations of JGroups functionality.
Provides implementations of transport protocols which are
responsible for sending and receiving messages to/from the network.
Support for managing protocol stacks.
Provides useful functionality which cannot be assigned to any particular other package.
-
Uses of Message in org.jgroups
Classes in org.jgroups that implement MessageModifier and TypeClassDescriptionclassA common superclass for allMessageimplementations.classA message that contains a batch of messages.classAMessagecontaining a byte array as payload.classA message composed of multiple messages.classAMessagewithout a payload; optimized for sending only headers (e.g.classA 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.classMessage with a long as payload.classAMessagewith a (heap-based or direct)ByteBufferas payload.
Note that the payload of an NioMessage must not be modified after sending it (ie.classAMessagewith an object as payload.Subinterfaces with type arguments of type Message in org.jgroupsModifier and TypeInterfaceDescriptioninterfaceA Message is used to send data to members of a group.Classes in org.jgroups that implement interfaces with type arguments of type MessageModifier and TypeClassDescriptionclassA message that contains a batch of messages.protected classclassA message composed of multiple messages.protected classFields in org.jgroups declared as MessageModifier and TypeFieldDescriptionprotected Message[]BatchMessage.msgsprotected Message[]CompositeMessage.msgsprotected MessageFragmentedMessage.original_msgFields in org.jgroups with type parameters of type MessageMethods in org.jgroups with type parameters of type MessageModifier and TypeMethodDescriptionstatic <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 MessageModifier and TypeMethodDescriptionBaseMessage.clearFlag(Message.Flag... flags) Clears a number of flags in a messageBaseMessage.clearFlag(Message.TransientFlag... flags) Message.clearFlag(Message.Flag... flags) Removes a number of flags from the message.Message.clearFlag(Message.TransientFlag... flags) Removes a number of transient flags from the message.BaseMessage.clearHeaders()Removes all headers: use carefully!Message.clearHeaders()Removes all headers: use carefully!BaseMessage.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 callMessage.putHeader(short,Header)again.Message.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 Messageprotected MessageBatchMessage.ensureSameDest(Message msg) protected MessageCompositeMessage.ensureSameDest(Message msg) Message[]BatchMessage.getMessages()FragmentedMessage.getOriginalMessage()BatchMessage.BatchMessageIterator.next()CompositeMessage.CompositeMessageIterator.next()Puts a header given an ID into the hashmap.protected MessageAdds a header to the messageBaseMessage.putHeaderIfAbsent(short id, Header hdr) Message.putHeaderIfAbsent(short id, Header hdr) Adds a header to a message if not presentdefault MessageMessage.setArray(byte[] b) Message.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 (Message.hasArray()is false).
Note that this is a convenience method, as most messages are of typeBytesMessage.Sets the byte array in a message.
Throws an exception if the message does not have a byte[] array payload (Message.hasArray()is false).
Note that this is a convenience method, as most messages are of typeBytesMessage.Sets the destination address to send the message to.BaseMessage.setFlag(short flag, boolean transient_flags, boolean xor) BaseMessage.setFlag(Message.Flag... flags) Sets a number of flags in a messageBaseMessage.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 operationMessage.setFlag(short flag, boolean transient_flags, boolean xor) Sets the flags as a short; this way, multiple flags can be set in one operationMessage.setFlag(Message.Flag... flags) Sets one or more flags (xor-ing existing flags)Message.setFlag(Message.TransientFlag... flags) Sets one or more transient flags (xor-ing).Sets an object in a message.BaseMessage.setPayload(Object pl) Message.setPayload(Object pl) Sets the payloadSets the address of the sender of this messagedefault MessageMethods in org.jgroups that return types with arguments of type MessageModifier and TypeMethodDescriptionBatchMessage.create()BytesMessage.create()CompositeMessage.create()EmptyMessage.create()FragmentedMessage.create()LongMessage.create()NioMessage.create()ObjectMessage.create()BatchMessage.iterator()CompositeMessage.iterator()Methods in org.jgroups with parameters of type MessageModifier and TypeMethodDescriptionAdds the message at the end of the array.Adds the message at the end of the array.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) Sends a message down asynchronously.protected MessageBatchMessage.ensureSameDest(Message msg) protected MessageCompositeMessage.ensureSameDest(Message msg) default voidCalled when a message is received.Sends a message.Method parameters in org.jgroups with type arguments of type MessageModifier and TypeMethodDescriptionCompositeMessage.add(Collection<Message> messages) static voidRegisters a new creator of messagesConstructors in org.jgroups with parameters of type MessageModifierConstructorDescriptionBatchMessage(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 -
Uses of Message in org.jgroups.admin
Methods in org.jgroups.admin with parameters of type MessageModifier and TypeMethodDescriptionvoidAdmin.handleAdminMessage(Message msg, AdminHeader hdr) protected voidAdmin.handleExec(Message msg, AdminHeader hdr) protected voidAdmin.handleInternalAdminMessage(Message msg, AdminHeader hdr) protected voidAdmin.handleInternalRequest(Message msg) protected voidAdmin.handleInternalResponse(Message msg, AdminHeader hdr) voidAdminHandler.handleMessage(Message msg, AdminHeader hdr) abstract voidAdminHandler.handleRequest(Message msg, AdminHeader hdr) voidPartitionHandler.handleRequest(Message msg, AdminHeader hdr) voidProbeAdminHandler.handleRequest(Message msg, AdminHeader ignored) voidSwitchAdminHandler.handleRequest(Message msg, AdminHeader hdr) abstract voidAdminHandler.handleResponse(Message msg, AdminHeader hdr) voidPartitionHandler.handleResponse(Message msg, AdminHeader hdr) voidProbeAdminHandler.handleResponse(Message msg, AdminHeader ignored) voidSwitchAdminHandler.handleResponse(Message msg, AdminHeader hdr) voidAdminHandler.sendRequest(String key, Message msg) voidAdminHandler.sendRequest(String key, Message msg, String command) voidAdminHandler.sendResponse(String key, Message msg) voidAdminHandler.sendResponse(String key, Message msg, String command) -
Uses of Message in org.jgroups.auth
Methods in org.jgroups.auth with parameters of type MessageModifier and TypeMethodDescriptionabstract 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 MessageMethods in org.jgroups.blocks that return MessageMethods in org.jgroups.blocks with parameters of type MessageModifier and TypeMethodDescriptionprotected <T> UnicastRequest<T> MessageDispatcher._sendMessage(Message msg, RequestOptions opts) protected <T> GroupRequest<T> MessageDispatcher.cast(Collection<Address> dests, Message msg, RequestOptions options, boolean block_for_results) <T> RspList<T> MessageDispatcher.castMessage(Collection<Address> dests, Message msg, RequestOptions opts) Sends a message to all members and expects responses from members in dests (if non-null).<T> CompletableFuture<RspList<T>> MessageDispatcher.castMessageWithFuture(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) voidProcesses a request synchronously, ie.default voidProcesses a request asynchronously.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 MessagevoidCallback.booleanRequestCorrelator.receiveMessage(Message msg) Handles a message coming from a layer belowvoidvoidSimilar toResponse.send(Object,boolean), but passes a message instead of an object.protected voidRequestCorrelator.sendAnycastRequest(Message req, Collection<Address> dest_mbrs) <T> TMessageDispatcher.sendMessage(Message msg, RequestOptions opts) Sends a unicast message and - depending on the options - returns a result<T> 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(Collection<Address> dest_mbrs, Message msg, Request<T> req, RequestOptions opts) Sends a request to a group.protected voidvoidGroupRequest.sendRequest(Message msg) protected voidGroupRequest.sendRequest(Message msg, 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 destinationConstructors in org.jgroups.blocks with parameters of type Message -
Uses of Message in org.jgroups.demos
Methods in org.jgroups.demos with parameters of type Message -
Uses of Message in org.jgroups.fork
Methods in org.jgroups.fork with parameters of type MessageModifier and TypeMethodDescriptionUnknownForkHandler.handleUnknownForkChannel(Message message, String forkChannelId) Handle a message that refers to an unknown fork channelUnknownForkHandler.handleUnknownForkStack(Message message, String forkStackId) Handle a message that refers to an unknown fork stackprotected void -
Uses of Message in org.jgroups.protocols
Fields in org.jgroups.protocols declared as MessageModifier and TypeFieldDescriptionprotected static final MessageReliableMulticast.DUMMY_OOB_MSGprotected static final MessageReliableUnicast.DUMMY_OOB_MSGprotected static final MessageUNICAST3.DUMMY_OOB_MSGprotected final Message[]FRAG2.FragEntry.fragmentsprotected MessageFRAG3.FragEntry.msgFields in org.jgroups.protocols with type parameters of type MessageModifier and TypeFieldDescriptionprotected static final BiConsumer<MessageBatch, Message> ReliableMulticast.BATCH_ACCUMULATORprotected static final BiConsumer<MessageBatch, Message> ReliableUnicast.BATCH_ACCUMULATORprotected static final BiConsumer<MessageBatch, Message> SEQUENCER2.BATCH_ACCUMULATORprotected static final BiConsumer<MessageBatch, Message> UNICAST3.BATCH_ACCUMULATORReliableMulticast.become_server_queueReliableMulticast.Entry.bufReliableUnicast.Entry.bufUNICAST3.dont_loopback_filterDROP.down_filtersSHUFFLE.down_msgsprotected final BlockingQueue<Message> BATCH2.down_queueReliableUnicast.drop_oob_and_dont_loopback_msgs_filterHDRS.filterREVERSE.filterREVERSE2.filterprotected final NavigableMap<Long, Message> SEQUENCER.forward_tableMaintains messages forwarded to the coord which which no ack has been received yet.BaseBundler.FUNCFORK.FUNCprotected final BlockingQueue<Message> SEQUENCER2.fwd_queueFRAG.HAS_FRAG_HEADERFRAG2.HAS_FRAG_HEADERFRAG3.HAS_FRAG_HEADERFailureDetection.HAS_HEADERReliableMulticast.HAS_HEADERReliableMulticast.local_xmit_tableBARRIER.mcast_queueBaseBundler.msgsKeys are destinations, values are lists of MessagesUNICAST3.Entry.msgsReliableMulticast.no_dummy_and_no_oob_delivered_msgs_and_no_dont_loopback_msgsMAKE_BATCH.oob_map_mcastMAKE_BATCH.oob_map_ucastREVERSE.queueREVERSE2.queueprotected BlockingQueue<Message> TransferQueueBundler.queueSEQUENCER2.received_msgsMAKE_BATCH.reg_map_mcastMAKE_BATCH.reg_map_ucastReliableMulticast.remove_filterReliableUnicast.remove_filterBATCH2.remove_queueTransferQueueBundler.remove_queueReliableMulticast.SEQNO_GETTERBARRIER.ucast_queueDROP.up_filtersSHUFFLE.up_msgsMethods in org.jgroups.protocols with type parameters of type MessageModifier and TypeMethodDescriptionReturns the receive window for sender; only used for testing.Methods in org.jgroups.protocols that return MessageModifier and TypeMethodDescriptionprotected MessageEncrypt._decrypt(Cipher cipher, 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 MessageDoes 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 Messageprotected static MessageCOMPRESS.messageFromByteArray(byte[] uncompressed_payload) protected MessageReliableMulticast.msgFromXmitRsp(Message msg, NakAckHeader hdr) FRAG3.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 MessageModifier and TypeMethodDescriptionReliableMulticast.becomeServerQueue()ReliableMulticast.Entry.buf()ReliableUnicast.Entry.buf()ReliableUnicast.createBuffer(long initial_seqno) UNICAST4.createBuffer(long s) UNICAST3.createTable(long seqno) NAKACK3.createXmitWindow(long initial_seqno) NAKACK4.createXmitWindow(long initial_seqno) ReliableMulticast.createXmitWindow(long initial_seqno) REVERSE.filter()REVERSE2.filter()UNICAST3.getSendWindow(Address target) Used for testing only!ReliableMulticast.sendBuf()Methods in org.jgroups.protocols with parameters of type MessageModifier and TypeMethodDescriptionprotected MessageEncrypt._decrypt(Cipher cipher, Key key, Message msg, EncryptHeader hdr) protected Objectprotected SHUFFLEprotected 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 voidBaseBundler.addMessage(Message msg, int size) protected booleanBATCH2.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 booleanprotected booleanReliableMulticast.addToSendBuffer(Buffer<Message> win, long seq, Message msg, Predicate<Message> filter) Adds the message to the send buffer.protected booleanReliableUnicast.addToSendBuffer(Buffer<Message> win, long seq, Message msg, 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 voidprotected voidprotected MessageDoes 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, 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) voidWe compress the payload if it is larger thanmin_size.Deprecated, for removal: This API element is subject to removal in a future version.A message needs to be sent to a single member or all membersprotected voidprotected booleanASYM_ENCRYPT.dropMulticastMessageFromNonMember(Message msg) protected voidprotected static voidprotected Messageprotected voidprotected voidSEQUENCER.forwardToCoord(long seqno, Message msg) protected voidSend all fragments as separate messages (with same ID !).protected voidSend all fragments as separate messages (with same ID !).protected voidprotected static GMS.GmsHeaderAUTH.getGMSHeader(Message msg) protected byte[]protected static JoinRspAUTH.getJoinResponse(Message msg) protected ObjectDiscovery.handle(PingHeader hdr, Message msg) protected 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 ObjectFlowControl.handleDownMessage(Message msg, int length) protected ObjectMFC.handleDownMessage(Message msg, int length) protected ObjectUFC.handleDownMessage(Message msg, int length) protected 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 voidprotected voidBaseBundler.loopbackUnlessDontLoopbackIsSet(Message msg) 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, boolean perform_cluster_name_matching, boolean multicast, boolean discard_own_mcast) protected voidprotected static voidSNIFF.printPayload(Message msg, StringBuilder sb) protected booleanASYM_ENCRYPT.processEncryptMessage(Message msg, EncryptHeader hdr, boolean retval) protected voidprotected voidReliableMulticast.queueMessage(Message msg, long seqno) protected voidprotected voidASYM_ENCRYPT.removeKeysFromMessageAndInstall(Message msg, byte[] version) Removes the public and/or private keys from the payload of msg and installs them.protected voidprotected voidprotected voidprotected 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 yetvoidvoidvoidvoidprotected booleanprotected booleanprotected booleanReliableUnicast.send(Message msg, ReliableUnicast.SenderEntry entry, boolean dont_loopback_set) voidprotected voidTCPPING.sendDiscoveryRequest(Message req) protected voidBPING.sendMcastDiscoveryRequest(Message msg) protected voidMPING.sendMcastDiscoveryRequest(Message msg) protected voidPING.sendMcastDiscoveryRequest(Message msg) protected voidBaseBundler.sendSingle(Address dst, Message msg, ByteBufferOutputStream out) protected voidBaseBundler.sendSingleMessage(Address dest, Message msg, ByteBufferOutputStream out) protected voidReliableMulticast.sendXmitRsp(Address dest, Message msg) Sends a message msg to the requester.protected voidvoidadds on fragmentation buffer to the messageFRAG3.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 longprotected 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)An event was received from the layer below.If there is no header, we pass the message up.Method parameters in org.jgroups.protocols with type arguments of type MessageModifier and TypeMethodDescriptionprotected static intReliableUnicast.accumulate(ToIntFunction<Buffer<Message>> func, Collection<? extends ReliableUnicast.Entry>... entries) protected static intUNICAST3.accumulate(ToIntFunction<Table<Message>> func, Collection<? extends UNICAST3.Entry>... entries) protected SHUFFLEprotected SHUFFLEDROP.addDownFilter(Predicate<Message> filter) protected voidReliableUnicast.addQueuedMessages(Address sender, ReliableUnicast.ReceiverEntry entry, Collection<Message> queued_msgs) protected voidUNICAST3.addQueuedMessages(Address sender, UNICAST3.ReceiverEntry entry, Collection<Message> queued_msgs) protected booleanprotected booleanprotected booleanReliableMulticast.addToSendBuffer(Buffer<Message> win, long seq, Message msg, Predicate<Message> filter) Adds the message to the send buffer.protected booleanReliableMulticast.addToSendBuffer(Buffer<Message> win, long seq, Message msg, Predicate<Message> filter) Adds the message to the send buffer.protected booleanReliableUnicast.addToSendBuffer(Buffer<Message> win, long seq, Message msg, Predicate<Message> filter) Adds the message to the send buffer.protected booleanReliableUnicast.addToSendBuffer(Buffer<Message> win, long seq, Message msg, Predicate<Message> filter) Adds the message to the send buffer.DROP.addUpFilter(Predicate<Message> filter) protected voidBARRIER.flushQueue(Map<Address, Message> queue) ReliableUnicast.getLowestSeqno(short prot_id, List<LongTuple<Message>> list) protected voidReliableUnicast.handleBatchReceived(ReliableUnicast.ReceiverEntry entry, Address sender, List<LongTuple<Message>> msgs, boolean oob, Address original_dest) protected voidUNICAST3.handleBatchReceived(UNICAST3.ReceiverEntry entry, Address sender, List<LongTuple<Message>> msgs, boolean oob, Address original_dest) protected voidprotected StringReliableUnicast.printMessageList(List<LongTuple<Message>> list) protected StringUNICAST3.printMessageList(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.DROP.removeDownFilter(Predicate<Message> filter) DROP.removeUpFilter(Predicate<Message> filter) protected SHUFFLEprotected SHUFFLEprotected booleanprotected voidprotected voidprotected voidBaseBundler.sendMessageList(Address dest, Address src, List<Message> list, ByteBufferOutputStream out) protected voidPerDestinationBundler.SendBuffer.sendMessages(Address dest, Address src, List<Message> list) protected voidBaseBundler.sendMultiple(Address dst, Address sender, List<Message> list, ByteBufferOutputStream out) protected static longReliableMulticast.sizeOfAllMessages(Buffer<Message> win, boolean include_headers) Constructor parameters in org.jgroups.protocols with type arguments of type MessageModifierConstructorDescriptionprotectedprotectedprotectedReceiverEntry(Buffer<Message> received_msgs, short recv_conn_id, Address real_dest) ReceiverEntry(Table<Message> received_msgs, short recv_conn_id, Address real_dest) -
Uses of Message in org.jgroups.protocols.dns
Methods in org.jgroups.protocols.dns with parameters of type Message -
Uses of Message in org.jgroups.protocols.pbcast
Fields in org.jgroups.protocols.pbcast declared as MessageFields in org.jgroups.protocols.pbcast with type parameters of type MessageModifier and TypeFieldDescriptionprotected static final BiConsumer<MessageBatch, Message> NAKACK2.BATCH_ACCUMULATORNAKACK2.become_server_queueNAKACK2.dont_loopback_filterNAKACK2.HAS_HEADERNAKACK2.local_xmit_tableNAKACK2.SEQNO_GETTERprotected final ConcurrentMap<Address, Table<Message>> NAKACK2.xmit_tableMap to store sent and received messages (keyed by sender)Methods in org.jgroups.protocols.pbcast that return MessageModifier and TypeMethodDescriptionprotected MessageNAKACK2.msgFromXmitRsp(Message msg, NakAckHeader2 hdr) Methods in org.jgroups.protocols.pbcast that return types with arguments of type MessageModifier and TypeMethodDescriptionNAKACK2.createTable(long initial_seqno) Returns the receive window for sender; only used for testing.Methods in org.jgroups.protocols.pbcast with parameters of type MessageModifier and TypeMethodDescriptionprotected voidprotected ObjectGMS.handle(GMS.GmsHeader hdr, Message msg) protected 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 voidprotected voidAdds the message to the sent_msgs table and then passes it down the stack.protected voidGMS.sendViewChangeAndJoinResponse(Message view_change_msg, JoinRsp jr, Collection<Address> joiners) protected voidNAKACK2.sendXmitRsp(Address dest, Message msg) Sends a message msg to the requester.Method parameters in org.jgroups.protocols.pbcast with type arguments of type MessageModifier and TypeMethodDescriptionprotected 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 MessageModifier and TypeMethodDescriptionprotected MessageCopies 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, Collection<String> visited_sites) Methods in org.jgroups.protocols.relay with parameters of type MessageModifier and TypeMethodDescriptionprotected MessageCopies 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, Collection<String> visited_sites) protected voidprotected ObjectSends the message to a local destination.protected ObjectRELAY3.deliver(Address next_dest, Message msg, boolean dont_relay, boolean dont_loopback, boolean oob) protected voidRELAY2.deliverLocally(SiteAddress dest, SiteAddress sender, 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 ObjectSends a message up the stack.protected ObjectThis method has all the routing logic, for both site masters and regular membersvoidvoidprotected voidRELAY2.route(SiteAddress dest, SiteAddress sender, Message msg) Routes the message to the target destination, used by a site master (coordinator)protected ObjectRELAY3.route(Message msg, Collection<String> sites) Sends a message to the given sites, or all sites (excluding the local site)protected ObjectvoidvoidRoute.send(Address final_destination, Address original_sender, Message msg, Collection<String> visited_sites) protected voidRELAY2.sendToBridges(Address sender, Message msg, String... excluded_sites) Sends the message via all bridges excluding the excluded_sites bridgesprotected ObjectRELAY3.sendToLocalSiteMaster(Address sender, Message msg) -
Uses of Message in org.jgroups.stack
Fields in org.jgroups.stack with type parameters of type MessageModifier and TypeFieldDescriptionprotected static final BiConsumer<Short, Message> GossipRouter.MSG_CONSUMERMethods in org.jgroups.stack with parameters of type MessageModifier and TypeMethodDescriptionprotected booleanCalled 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.A message is sent down the stack.Passes a message down asynchronously.booleanProcess a message that was not received from the transport but from above (e.g.booleanProcess a message received from the transportA single message was received. -
Uses of Message in org.jgroups.util
Classes in org.jgroups.util that implement interfaces with type arguments of type MessageModifier and TypeClassDescriptionclassRepresents a message batch; multiple messages from the same sender to the same receiver(s).Fields in org.jgroups.util declared as MessageModifier and TypeFieldDescriptionprotected final MessageSubmitToThreadPool.SingleMessageHandler.msgFields in org.jgroups.util with type parameters of type MessageModifier and TypeFieldDescriptionMessageCache.FUNCMessageCache.mapMessageBatch.messagesThe storage of the messages; removed messages have a null elementprotected final BlockingQueue<Message> MaxOneThreadPerSender.Entry.mqMethods in org.jgroups.util with type parameters of type MessageModifier and TypeMethodDescription<T extends Message>
TMessageBatch.first()<T extends Message>
TMessageBatch.last()Methods in org.jgroups.util that return MessageModifier and TypeMethodDescriptionstatic MessageCopies a message.SubmitToThreadPool.SingleMessageHandler.getMessage()static MessageUtil.messageFromBuffer(byte[] buf, int offset, int length) static MessageUtil.readMessage(DataInput in) Methods in org.jgroups.util that return types with arguments of type MessageModifier and TypeMethodDescriptionMessageBatch.array()Returns the underlying message array.MessageBatch.iterator()Iterator which iterates only over non-null messages, skipping null messagesIterates over all non-null message which match filterUtil.readMessageList(DataInput in, short transport_id) MessageBatch.stream()Methods in org.jgroups.util with parameters of type MessageModifier and TypeMethodDescriptionAdds message to this batch from a message arrayAdds a message to the tableAdds a message to the tablevoidBundlerHelper.computeTime(String key, Message msg) voidBundlerHelper.computeTime(String key, Message[] list) static MessageCopies a message.booleanDecrements credits bytes from all.booleanCredit.decrementIfEnoughCredits(Message msg, int credits, long timeout) voidvoidstatic StringTries 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 receivedbooleanbooleanbooleanbooleanstatic ByteArrayUtil.messageToBuffer(Message msg) protected booleanprotected booleanbooleanbooleanbooleanbooleanvoidvoidBundlerHelper.setStartTime(Message msg) voidvoidvoidstatic voidUtil.writeMessage(Message msg, DataOutput dos, boolean multicast) static voidUtil.writeMessageList(Address dest, Address src, byte[] cluster_name, Message[] msgs, int offset, int length, DataOutput dos, boolean multicast) Method parameters in org.jgroups.util with type arguments of type MessageModifier and TypeMethodDescriptionMessageBatch.add(Collection<Message> msgs) booleanvoidBundlerHelper.computeTime(String key, List<Message> list) voidstatic StringUtil.getObjects(Iterable<Message> it) Iterates over all non-null message which match filterstatic voidUtil.parse(byte[] buf, int offset, int length, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) static voidUtil.parse(InputStream input, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) protected static voidUtil.parseFrame(byte[] frame, boolean gossip, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer) static voidUtil.writeMessageList(Address dest, Address src, byte[] cluster_name, List<Message> msgs, 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, DataOutput dos, boolean multicast) Constructors in org.jgroups.util with parameters of type MessageConstructor parameters in org.jgroups.util with type arguments of type MessageModifierConstructorDescriptionMessageBatch(Collection<Message> msgs) MessageBatch(Address dest, Address sender, AsciiString cluster_name, boolean multicast, Collection<Message> msgs)