RTI Connext Java API
Version 6.1.0
|
Type for sequence number representation. More...
Inherits Struct.
Public Member Functions | |
SequenceNumber_t () | |
Constructor. More... | |
SequenceNumber_t (SequenceNumber_t sn) | |
Copy constructor. More... | |
SequenceNumber_t (int high, long low) | |
Constructor. More... | |
int | compare (SequenceNumber_t sn) |
Compares two sequence numbers. More... | |
void | plusplus () |
Increases the value of this by one. More... | |
void | minusminus () |
Decreases the value of this by one. More... | |
SequenceNumber_t | add (SequenceNumber_t val) |
Returns a sequence number whose value is (this + val) More... | |
SequenceNumber_t | subtract (SequenceNumber_t val) |
Returns a sequence number whose value is (this - val) More... | |
Public Attributes | |
int | high |
The most significant part of the sequence number. More... | |
long | low |
The least significant part of the sequence number. More... | |
Static Public Attributes | |
static final SequenceNumber_t | SEQUENCE_NUMBER_UNKNOWN |
Unknown sequence number. More... | |
static final SequenceNumber_t | AUTO_SEQUENCE_NUMBER |
The sequence number is internally determined by RTI Connext. More... | |
static final SequenceNumber_t | SEQUENCE_NUMBER_ZERO |
Zero value for the sequence number. More... | |
static final SequenceNumber_t | SEQUENCE_NUMBER_MAX |
Highest, most positive value for the sequence number. More... | |
Type for sequence number representation.
Represents a 64-bit sequence number.
SequenceNumber_t | ( | ) |
Constructor.
References SequenceNumber_t.SEQUENCE_NUMBER_UNKNOWN.
Referenced by SequenceNumber_t.add(), SequenceNumber_t.SequenceNumber_t(), and SequenceNumber_t.subtract().
Copy constructor.
sn | The sequence number instance to copy. It must not be null. |
References SequenceNumber_t.high, and SequenceNumber_t.low.
SequenceNumber_t | ( | int | high, |
long | low | ||
) |
Constructor.
high | must be in the interval [0,0xffffffff] |
low | must be in the interval [0,0x00000000ffffffff] |
RETCODE_BAD_PARAMETER |
References SequenceNumber_t.compare(), SequenceNumber_t.high, SequenceNumber_t.low, and SequenceNumber_t.SequenceNumber_t().
int compare | ( | SequenceNumber_t | sn | ) |
Compares two sequence numbers.
sn | <<in>> Sequence number to compare. Cannot be null. |
References SequenceNumber_t.high, and SequenceNumber_t.low.
Referenced by SequenceNumber_t.SequenceNumber_t().
void plusplus | ( | ) |
Increases the value of this by one.
void minusminus | ( | ) |
Decreases the value of this by one.
SequenceNumber_t add | ( | SequenceNumber_t | val | ) |
Returns a sequence number whose value is (this + val)
References SequenceNumber_t.high, SequenceNumber_t.low, and SequenceNumber_t.SequenceNumber_t().
SequenceNumber_t subtract | ( | SequenceNumber_t | val | ) |
Returns a sequence number whose value is (this - val)
References SequenceNumber_t.high, SequenceNumber_t.low, and SequenceNumber_t.SequenceNumber_t().
|
static |
Unknown sequence number.
Referenced by Requester< TReq, TRep >.createReplySample(), Replier< TReq, TRep >.createRequestSample(), and SequenceNumber_t.SequenceNumber_t().
|
static |
The sequence number is internally determined by RTI Connext.
Referenced by Requester< TReq, TRep >.createReplySample(), and Replier< TReq, TRep >.createRequestSample().
|
static |
Zero value for the sequence number.
Referenced by Requester< TReq, TRep >.createReplySample(), and Replier< TReq, TRep >.createRequestSample().
|
static |
Highest, most positive value for the sequence number.
Referenced by Requester< TReq, TRep >.createReplySample(), and Replier< TReq, TRep >.createRequestSample().
int high |
The most significant part of the sequence number.
Referenced by SequenceNumber_t.add(), SequenceNumber_t.compare(), SequenceNumber_t.SequenceNumber_t(), and SequenceNumber_t.subtract().
long low |
The least significant part of the sequence number.
Referenced by SequenceNumber_t.add(), SequenceNumber_t.compare(), SequenceNumber_t.SequenceNumber_t(), and SequenceNumber_t.subtract().