public class Heartbeat extends SubMessage
SubMessage.Kind
Modifier and Type | Field and Description |
---|---|
static int |
KIND |
header
Constructor and Description |
---|
Heartbeat(EntityId readerId,
EntityId writerId,
long firstSeqNum,
long lastSeqNum,
int count) |
Modifier and Type | Method and Description |
---|---|
boolean |
finalFlag()
Appears in the Submessage header flags.
|
void |
finalFlag(boolean flag)
Sets the finalFlag to given value.
|
int |
getCount()
A counter that is incremented each time a new Heartbeat message is sent.
|
long |
getFirstSequenceNumber()
Identifies the first (lowest) sequence number that is available in the
Writer.
|
long |
getLastSequenceNumber()
Identifies the last (highest) sequence number that is available in the
Writer.
|
EntityId |
getReaderId()
Identifies the Reader Entity that is being informed of the availability
of a set of sequence numbers.
|
EntityId |
getWriterId()
Identifies the Writer Entity to which the range of sequence numbers
applies.
|
boolean |
livelinessFlag()
Appears in the Submessage header flags.
|
void |
livelinessFlag(boolean livelinessFlag)
Sets the livelinessFlag to given value
|
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writes this SubMessage into given RTPSByteBuffer.
|
getHeader, getKind
public static final int KIND
public boolean finalFlag()
public void finalFlag(boolean flag)
flag
- finalFlagpublic boolean livelinessFlag()
public void livelinessFlag(boolean livelinessFlag)
livelinessFlag
- livelinessFlagpublic EntityId getReaderId()
public EntityId getWriterId()
public long getFirstSequenceNumber()
public long getLastSequenceNumber()
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.