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.classAMessagewith an object as payload.Fields 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 TypeMethodDescription<T extends Message>
TDefaultMessageFactory.create(short type) <T extends Message>
TMessageFactory.create(short id) 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).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.Sets the byte array in a message.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 TypeMethodDescription<T extends MessageFactory>
T<M extends MessageFactory>
MRegisters 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) -
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) Check if I'm in memberList, toobooleanKrb5Token.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 Message[]RingBufferBundlerLockless.bufprotected Message[]RingBufferBundlerLockless2.bufprotected static final MessageUNICAST3.DUMMY_OOB_MSGprotected final Message[]FRAG2.FragEntry.fragmentsprivate final MessageDELAY.DelayedMessage.msgprotected MessageFRAG3.FragEntry.msgprotected final Message[]SimplifiedTransferQueueBundler.msg_queueprivate Message[]BATCH.Buffer.msgsprivate Message[]BATCH2.Buffer.msgsprivate final Message[]BatchBundler.Buffer.msgsstatic final MessageRingBufferBundlerLockless2.NULL_MSGprotected Message[]RemoveQueueBundler.remove_queueFields in org.jgroups.protocols with type parameters of type MessageModifier and TypeFieldDescriptionprotected static final BiConsumer<MessageBatch, Message> SEQUENCER2.BATCH_ACCUMULATORprotected static final BiConsumer<MessageBatch, Message> UNICAST3.BATCH_ACCUMULATORUNICAST3.dont_loopback_filterDROP.down_filtersSHUFFLE.down_msgsprotected final BlockingQueue<Message> BATCH2.down_queueHDRS.filterREVERSE.filterprotected final NavigableMap<Long, Message> SEQUENCER.forward_tableMaintains messages forwarded to the coord which which no ack has been received yet.protected final BlockingQueue<Message> SEQUENCER2.fwd_queueFRAG.HAS_FRAG_HEADERFRAG2.HAS_FRAG_HEADERFRAG3.HAS_FRAG_HEADERFailureDetection.HAS_HEADERBARRIER.mcast_queueBaseBundler.msgsKeys are destinations, values are lists of MessagesPerDestinationBundler.SendBuffer.msgsUNICAST3.Entry.msgsMAKE_BATCH.oob_map_mcastMAKE_BATCH.oob_map_ucastprivate final BlockingQueue<Message> PerDestinationBundler.SendBuffer.queueREVERSE.queueprotected BlockingQueue<Message> TransferQueueBundler.queueprotected BlockingQueue<Message> TransferQueueBundler2.queueprotected RingBuffer<Message> RemoveQueueBundler.rbprotected RingBuffer<Message> RingBufferBundler.rbSEQUENCER2.received_msgsMAKE_BATCH.reg_map_mcastMAKE_BATCH.reg_map_ucastBATCH2.remove_queuePerDestinationBundler.SendBuffer.remove_queueTransferQueueBundler.remove_queueTransferQueueBundler2.remove_queueMFC_NB.send_functionUFC_NB.send_functionAlternatingBundler.target_listBARRIER.ucast_queueDROP.up_filtersSHUFFLE.up_msgsMethods 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, MessageFactory msg_factory) 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 uncompressedprivate MessageFRAG.unfragment(Message msg, FragHeader hdr) 1.protected 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 TypeMethodDescriptionRingBufferBundler.buf()UNICAST3.createTable(long seqno) REVERSE.filter()UNICAST3.getSendWindow(Address target) Used for testing only!Methods in org.jgroups.protocols with parameters of type MessageModifier and TypeMethodDescriptionprotected MessageEncrypt._decrypt(Cipher cipher, Key key, Message msg, EncryptHeader hdr) protected Objectprotected Objectprotected voidBatchBundler._send(Message msg, ByteArrayDataOutputStream out) protected voidprotected SHUFFLEprotected voidPerDestinationBundler.SendBuffer.addAndSendIfSizeExceeded(Message msg) protected voidTransferQueueBundler.addAndSendIfSizeExceeded(Message msg) protected voidTransferQueueBundler2.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 voidSimplifiedTransferQueueBundler.addMessage(Message msg, int size) private TransferQueueBundler2.BufferTransferQueueBundler2.Buffer.addMessage(Message msg, TP transport) 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 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 voidprivate voidDUPL.copy(Message msg, int num_copies, DUPL.Direction direction) protected MessageDoes the actual work for decrypting - if version does not match current cipher then tries the previous cipherprotected voidSEQUENCER.deliver(Message msg, SEQUENCER.SequencerHeader hdr) protected voidSEQUENCER2.deliver(Message msg, SEQUENCER2.SequencerHeader hdr) protected voidUNICAST3.deliverMessage(Message msg, Address sender, long seqno) We compress the payload if it is larger thanmin_size.A message needs to be sent to a single member or all membersprotected booleanASYM_ENCRYPT.dropMulticastMessageFromNonMember(Message msg) protected voidprotected static voidprotected Messageprotected voidprotected voidSEQUENCER.forwardToCoord(long seqno, Message msg) private voidSend all fragments as separate messages (with same ID !).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 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 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_NB.handleDownMessage(Message msg, int length) protected ObjectMFC.handleDownMessage(Message msg, int length) protected ObjectUFC_NB.handleDownMessage(Message msg, int length) protected ObjectUFC.handleDownMessage(Message msg, int length) protected ObjectEncrypt.handleEncryptedMessage(Message msg) protected voidFlowControl.handleUpEvent(Message msg, FcHeader hdr) protected voidUNICAST3.handleUpEvent(Address sender, Message msg, UnicastHeader3 hdr) protected voidprotected intRingBufferBundler.marshalMessagesToSameDestination(Address dest, Message[] buf, int start_index, int end_index, int max_bundle_size) 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 booleanAUTH.needsAuthentication(Message msg, GMS.GmsHeader hdr) protected static intSIZE.numHeaders(Message msg) voidTP.passMessageUp(Message msg, byte[] cluster_name, boolean perform_cluster_name_matching, boolean multicast, boolean discard_own_mcast) protected static voidSNIFF.printPayload(Message msg, StringBuilder sb) protected booleanASYM_ENCRYPT.processEncryptMessage(Message msg, EncryptHeader hdr, boolean retval) protected voidprotected 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 voidUNICAST3.retransmit(Message msg) Called by the sender to resend messages for which no ACK has been received yetvoidvoidvoidvoidvoidvoidprotected voidvoidvoidvoidvoidvoidvoidvoidvoidRingBufferBundler.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 voidBatchBundler.Buffer.sendMessageList(Address dest, Address src, Message[] list, int length) protected voidBaseBundler.sendSingleMessage(Message msg) protected voidNoBundler.sendSingleMessage(Message msg, ByteArrayDataOutputStream output) protected voidPerDestinationBundler.SendBuffer.sendSingleMessage(Address dest, Message msg) 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 uncompressedprivate MessageFRAG.unfragment(Message msg, FragHeader hdr) 1.protected 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.Deprecated.Method parameters in org.jgroups.protocols with type arguments of type MessageModifier and TypeMethodDescriptionprotected static intUNICAST3.accumulate(ToIntFunction<Table<Message>> func, Collection<? extends UNICAST3.Entry>... entries) protected SHUFFLEprotected SHUFFLEprotected SHUFFLEprotected SHUFFLEDROP.addDownFilter(Predicate<Message> filter) protected voidUNICAST3.addQueuedMessages(Address sender, UNICAST3.ReceiverEntry entry, Collection<Message> queued_msgs) DROP.addUpFilter(Predicate<Message> filter) protected voidBARRIER.flushQueue(Map<Address, Message> queue) protected voidUNICAST3.handleBatchReceived(UNICAST3.ReceiverEntry entry, Address sender, List<LongTuple<Message>> msgs, boolean oob, Address original_dest) protected StringUNICAST3.printMessageList(List<LongTuple<Message>> list) protected voidSEQUENCER2.removeAndDeliver(Table<Message> win, Address sender) protected voidUNICAST3.removeAndDeliver(Table<Message> win, Address sender) 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 voidprotected voidBaseBundler.sendMessageList(Address dest, Address src, List<Message> list) protected voidPerDestinationBundler.SendBuffer.sendMessageList(Address dest, Address src, FastArray<Message> list) protected voidRemoveQueueBundler.sendMessageList(Address dest, Address src, List<Message> list) protected voidPerDestinationBundler.SendBuffer.sendMessages(Address dest, Address src, FastArray<Message> list) Constructors in org.jgroups.protocols with parameters of type MessageConstructor parameters in org.jgroups.protocols with type arguments of type MessageModifierConstructorDescriptionprotectedReceiverEntry(Table<Message> received_msgs, short recv_conn_id, Address real_dest) protectedprotected -
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 voidDeprecated, for removal: This API element is subject to removal in a future version.protected ObjectGMS.handle(GMS.GmsHeader hdr, Message msg) protected ObjectStreamingStateTransfer.handle(StreamingStateTransfer.StateHeader hdr, Message msg) private voidFLUSH.handleFlushReconcile(Message msg) Deprecated, for removal: This API element is subject to removal in a future version.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) private voidFLUSH.handleStartFlush(Message msg, FLUSH.FlushHeader fh) Deprecated, for removal: This API element is subject to removal in a future version.protected voidNAKACK2.handleXmitRsp(Message msg, NakAckHeader2 hdr) protected MessageNAKACK2.msgFromXmitRsp(Message msg, NakAckHeader2 hdr) private voidFLUSH.onFlushCompleted(Address address, Message m, FLUSH.FlushHeader header) Deprecated, for removal: This API element is subject to removal in a future version.private voidFLUSH.onFlushReconcileOK(Message msg) Deprecated, for removal: This API element is subject to removal in a future version.private voidFLUSH.onStartFlush(Address flushStarter, Message msg, FLUSH.FlushHeader fh) Deprecated, for removal: This API element is subject to removal in a future version.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 voidNAKACK2.sendXmitRsp(Address dest, Message msg) Sends a message msg to the requester.Deprecated, for removal: This API element is subject to removal in a future version.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_name) 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.tests
Fields in org.jgroups.tests with type parameters of type MessageModifier and TypeFieldDescription(package private) final BiConsumer<Short, Message> ParseMessages.InnerParseMessages.msg_consumerMethods in org.jgroups.tests that return MessageModifier and TypeMethodDescriptionprotected static final MessageUnicastTestTcp.readMessage(DataInput in) protected static MessageUnicastTestTcpSlow.readMessage(byte[] buf, int offset, int length) Methods in org.jgroups.tests with parameters of type MessageModifier and TypeMethodDescriptionprotected static Viewprotected static voidParseMessages.parseDiscoveryResponse(Message msg) voidvoidvoidvoidvoidvoidvoidprotected voidprotected static final voidUnicastTestTcp.writeMessage(Message msg, DataOutputStream out) protected ByteArrayUnicastTestTcpSlow.Sender.writeMessage(Message msg) Method parameters in org.jgroups.tests with type arguments of type MessageModifier and TypeMethodDescriptionvoidParseMessages.InnerParseMessages.parse(InputStream input, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) static voidParseMessages.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) voidParseMessages.parse(InputStream in, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) voidParseMessagesFields.parse(InputStream in, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, Consumer<GossipData> gossip_consumer, boolean tcp, boolean gossip) voidParseMessagesFields.parseWithFields(InputStream input, BiConsumer<Short, Message> msg_consumer, BiConsumer<Short, MessageBatch> batch_consumer, boolean tcp, boolean gossip) -
Uses of Message in org.jgroups.tests.perf
Methods in org.jgroups.tests.perf with parameters of type Message -
Uses of Message in org.jgroups.tests.rt.transports
Methods in org.jgroups.tests.rt.transports with parameters of type Message -
Uses of Message in org.jgroups.util
Fields in org.jgroups.util declared as MessageModifier and TypeFieldDescriptionprotected final MessageSubmitToThreadPool.SingleLoopbackHandler.msgprotected final MessageSubmitToThreadPool.SingleMessageHandler.msgFields in org.jgroups.util with type parameters of type MessageModifier and TypeFieldDescriptionMessageCache.mapMessageBatch.messagesThe storage of the messages; removed messages have a null elementprotected final SizeBoundedQueue<Message> NonBlockingCredit.msg_queueprotected final SizeBoundedQueue<Message> NonBlockingCreditMap.msg_queueNonBlockingCredit.NO_OP_SEND_FUNCTIONNonBlockingCreditMap.NO_OP_SEND_FUNCTIONNonBlockingCredit.send_functionNonBlockingCreditMap.send_functionMethods 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, MessageFactory mf) static MessageUtil.messageFromByteBuffer(byte[] buffer, int offset, int length, MessageFactory mf) static MessageUtil.readMessage(DataInput in, MessageFactory mf) 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, MessageFactory mf) MessageBatch.stream()Methods in org.jgroups.util with parameters of type MessageModifier and TypeMethodDescriptionintAdds message to this batch from a message arrayintAdds a message to the tableprotected booleanNonBlockingCredit.addToQueue(Message msg, int length) protected booleanNonBlockingCreditMap.addToQueue(Message msg, int length) protected booleanMaxOneThreadPerSender.Entry.allowedToSubmitToThreadPool(Message msg) Either allows access to submit a task to the thread pool for delivery to the application, or queues the messagestatic MessageCopies a message.booleanDecrements credits bytes from all.booleanbooleanCredit.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.static StringTries to return a legible representation of a message's payloadvoidRTT.handleMessage(Message msg, TpHeader hdr) Called when a message (request or response) is receivedbooleanbooleanbooleanstatic ByteArrayUtil.messageToBuffer(Message msg) static ByteArrayUtil.messageToByteBuffer(Message msg) protected booleanprotected booleanbooleanbooleanbooleanvoidprotected booleanstatic 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 TypeMethodDescriptionintMessageBatch.add(Collection<Message> msgs) booleanstatic 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) 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 MessageModifierConstructorDescriptionprotectedprotectedSingleMessageHandlerWithClusterName(Message msg, byte[] cluster_name) Constructor 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) NonBlockingCredit(long credits, int max_size, Lock lock, Consumer<Message> send_function) NonBlockingCreditMap(long max_credits, int max_size, Lock lock, Consumer<Message> send_function)