Package org.jgroups.protocols
Class SEQUENCER.SequencerHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.SEQUENCER.SequencerHeader
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Enclosing class:
SEQUENCER
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byteprotected static final byteprotected booleanprotected static final byteprotected longprotected byteprotected static final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of the class implementing this interfaceshortReturns the magic-ID.longgetSeqno()protected final StringvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintReturns the size (in bytes) of the marshalled objecttoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
FORWARD
protected static final byte FORWARD- See Also:
-
FLUSH
protected static final byte FLUSH- See Also:
-
BCAST
protected static final byte BCAST- See Also:
-
WRAPPED_BCAST
protected static final byte WRAPPED_BCAST- See Also:
-
type
protected byte type -
seqno
protected long seqno -
flush_ack
protected boolean flush_ack
-
-
Constructor Details
-
SequencerHeader
public SequencerHeader() -
SequencerHeader
public SequencerHeader(byte type) -
SequencerHeader
public SequencerHeader(byte type, long seqno)
-
-
Method Details
-
getMagicId
public short getMagicId()Description copied from class:HeaderReturns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicIdin classHeader
-
getSeqno
public long getSeqno() -
create
Description copied from interface:ConstructableCreates an instance of the class implementing this interface -
toString
-
printType
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
IOException
-
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object
-