Uses of Class
org.jgroups.Header
Packages that use Header
Package
Description
Provides top-level public JGroups classes such as Channel, Message, etc.
Provides building blocks that are layered on top of channels.
Provides implementations of transport protocols which are
responsible for sending and receiving messages to/from the network.
Supports probabilistic broadcasts.
Provides useful functionality which cannot be assigned to any particular other package.
-
Uses of Header in org.jgroups
Methods in org.jgroups that return HeaderModifier and TypeMethodDescriptionMessage.getHeader(short id) Message.putHeaderIfAbsent(short id, Header hdr) Puts a header given a key into the map, only if the key doesn't exist yetMessage.removeHeader(short id) Deprecated.Use getHeader() instead.Methods in org.jgroups that return types with arguments of type HeaderModifier and TypeMethodDescriptionMessage.getHeaders()Returns a reference to the headers hashmap, which is immutable.Methods in org.jgroups with parameters of type HeaderModifier and TypeMethodDescriptionvoidPuts a header given an ID into the hashmap.Message.putHeaderIfAbsent(short id, Header hdr) Puts a header given a key into the map, only if the key doesn't exist yet -
Uses of Header in org.jgroups.blocks
Subclasses of Header in org.jgroups.blocksModifier and TypeClassDescriptionstatic final classDeprecated.static classThe header for RequestCorrelator messagesstatic final class -
Uses of Header in org.jgroups.blocks.mux
Subclasses of Header in org.jgroups.blocks.muxModifier and TypeClassDescriptionclassHeader that identifies the target handler for multiplexed dispatches. -
Uses of Header in org.jgroups.mux
Subclasses of Header in org.jgroups.muxModifier and TypeClassDescriptionclassHeader used for multiplexing and de-multiplexing between service components on top of a Multiplexer (Channel) -
Uses of Header in org.jgroups.protocols
Subclasses of Header in org.jgroups.protocolsModifier and TypeClassDescriptionclassAuthHeader is a holder object for the token that is passed from the joiner to the coordinatorstatic classstatic classstatic classstatic classstatic classclassHeader used by various flow control protocolsstatic classstatic classstatic classstatic classclassstatic classstatic classstatic classstatic classclassclassThis Header class is used in conjunction with the PRIO protocol to prioritize message sending/receiving Priority values are from 0 to 255 where 0 is the highest priority Example of setting a message priority:// Create a message to send to everyone Message message = new Message( null, null, messagePayload ); // Add the priority protocol header PrioHeader header = new PrioHeader( 1 ); short protocolId = ClassConfigurator.getProtocolId(PRIO.class); message.putHeader( protocolId, header);static classstatic classstatic classstatic classDeprecated.static classstatic classclassGeneric transport header, used by TP.static classThe following types and fields are serialized:static classThe following types and fields are serialized:static classstatic class -
Uses of Header in org.jgroups.protocols.pbcast
Subclasses of Header in org.jgroups.protocols.pbcastModifier and TypeClassDescriptionstatic classstatic classclassstatic classstatic classWraps data for a state request/response.static class -
Uses of Header in org.jgroups.util
Methods in org.jgroups.util that return HeaderModifier and TypeMethodDescriptionHeaders.getHeader(short id) Returns the header associated with an IDHeader[]Headers.getRawHeaders()Headers.putHeaderIfAbsent(short id, Header hdr) Puts a header given a key into the map, only if the key doesn't exist yetHeaders.removeHeader(short id) Deprecated.Use getHeader() instead.Methods in org.jgroups.util that return types with arguments of type HeaderMethods in org.jgroups.util with parameters of type HeaderModifier and TypeMethodDescriptionvoidPuts a header given a key into the hashmap.Headers.putHeaderIfAbsent(short id, Header hdr) Puts a header given a key into the map, only if the key doesn't exist yet