Class Header

  extended by org.jgroups.Header
All Implemented Interfaces:
Direct Known Subclasses:
AuthHeader, COMPRESS.CompressHeader, COUNTER.CounterHeader, DAISYCHAIN.DaisyHeader, DemoToken.DemoHeader, DISCARD.DiscardHeader, ENCRYPT.EncryptHeader, EXAMPLE.ExampleHeader, Executing.ExecutorHeader, FcHeader, FD_ALL.HeartbeatHeader, FD_SIMPLE.FdHeader, FD_SOCK.FdHeader, FD.FdHeader, FLUSH.FlushHeader, FORWARD_TO_COORD.ForwardHeader, FragHeader, GMS.GmsHeader, HTOTAL.HTotalHeader, Locking.LockingHeader, MERGE3.MergeHeader, MuxHeader, NakAckHeader, NakAckHeader2, PingHeader, PrioHeader, RELAY.RelayHeader, RELAY2.Relay2Header, RequestCorrelator.Header, RSVP.RsvpHeader, SCOPE.ScopeHeader, SEQUENCER.SequencerHeader, STABLE.StableHeader, STATE_TRANSFER.StateHeader, STOMP.StompHeader, StreamingStateTransfer.StateHeader, ToaHeader, TpHeader, UNICAST.UnicastHeader, UNICAST2.Unicast2Header, VERIFY_SUSPECT.VerifyHeader

public abstract class Header
extends java.lang.Object
implements Streamable

Header is a JGroups internal base class for all JGroups headers. Client normally do not need to interact with headers unless they are developing their custom protocols.

Bela Ban

Constructor Summary
Method Summary
abstract  int size()
          To be implemented by subclasses.
 java.lang.String toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgroups.util.Streamable
readFrom, writeTo

Constructor Detail


public Header()
Method Detail


public abstract int size()
To be implemented by subclasses. Return the size of this object for the serialized version of it. I.e. how many bytes this object takes when flattened into a buffer. This may be different for each instance, or can be the same. This may also just be an estimation. E.g. FRAG uses it on Message to determine whether or not to fragment the message. Fragmentation itself will be accurate, because the entire message will actually be serialized into a byte buffer, so we can determine the exact size.


public java.lang.String toString()
toString in class java.lang.Object

Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.