public class AckNack extends SubMessage
see 8.3.7.1 AckNack
SubMessage.Kind
Modifier and Type | Field and Description |
---|---|
static int |
KIND |
header
Constructor and Description |
---|
AckNack(EntityId readerId,
EntityId writerId,
SequenceNumberSet readerSnSet,
int count) |
Modifier and Type | Method and Description |
---|---|
boolean |
finalFlag()
Final flag indicates to the Writer whether a response is mandatory.
|
void |
finalFlag(boolean value)
Sets the finalFlag.
|
int |
getCount()
A counter that is incremented each time a new AckNack message is sent.
|
EntityId |
getReaderId()
Identifies the Reader entity that acknowledges receipt of certain
sequence numbers and/or requests to receive certain sequence numbers.
|
SequenceNumberSet |
getReaderSNState()
Communicates the state of the reader to the writer.
|
EntityId |
getWriterId()
Identifies the Writer entity that is the target of the AckNack message.
|
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writes this SubMessage into given RTPSByteBuffer.
|
getHeader, getKind
public static final int KIND
public AckNack(EntityId readerId, EntityId writerId, SequenceNumberSet readerSnSet, int count)
public boolean finalFlag()
public void finalFlag(boolean value)
value
- Final flagpublic EntityId getReaderId()
public EntityId getWriterId()
public SequenceNumberSet getReaderSNState()
public int getCount()
public void writeTo(RTPSByteBuffer bb)
SubMessage
writeTo
in class SubMessage
bb
- RTPSByteBufferpublic String toString()
toString
in class SubMessage
Copyright © 2016. All rights reserved.