Class NakAckHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.NakAckHeader
- All Implemented Interfaces:
Constructable<Header>, SizeStreamable, Streamable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final byteprotected Addressprotected longprotected bytestatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()create()Creates an instance of the class implementing this interfacestatic NakAckHeadercreateAckHeader(long ack) static NakAckHeadercreateHighestSeqnoHeader(long seqno) static NakAckHeadercreateMessageHeader(long seqno) static NakAckHeadercreateXmitRequestHeader(Address orginal_sender) static NakAckHeadershortReturns the magic-ID.longgetSeqno()bytegetType()voidRead 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()bytetype()static Stringtype2Str(byte t) voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
MSG
public static final byte MSG- See Also:
-
XMIT_REQ
public static final byte XMIT_REQ- See Also:
-
XMIT_RSP
public static final byte XMIT_RSP- See Also:
-
HIGHEST_SEQNO
public static final byte HIGHEST_SEQNO- See Also:
-
ACK
public static final byte ACK- See Also:
-
type
protected byte type -
seqno
protected long seqno -
sender
-
-
Constructor Details
-
NakAckHeader
public NakAckHeader()
-
-
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
-
create
Description copied from interface:ConstructableCreates an instance of the class implementing this interface- Returns:
- Supplier
-
createMessageHeader
-
createXmitRequestHeader
-
createXmitResponseHeader
-
createHighestSeqnoHeader
-
createAckHeader
-
getType
public byte getType() -
type
public byte type() -
getSeqno
public long getSeqno() -
getSender
-
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:
IOExceptionClassNotFoundException
-
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object -
copy
-
type2Str
-
toString
-