RTI Connext Java API
Version 5.1.0
|
Type for sequence number representation. More...
Inherits Struct.
Public Member Functions | |
SequenceNumber_t () | |
Constructor. | |
SequenceNumber_t (SequenceNumber_t sn) | |
Copy constructor. | |
SequenceNumber_t (int high, long low) | |
Constructor. | |
int | compare (SequenceNumber_t sn) |
Compares two sequence numbers. | |
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) | |
SequenceNumber_t | subtract (SequenceNumber_t val) |
Returns a sequence number whose value is (this - val) | |
Public Member Functions inherited from Struct | |
abstract boolean | equals (Object obj) |
abstract int | hashCode () |
String | toString () |
Public Attributes | |
int | high |
The most significant part of the sequence number. | |
long | low |
The least significant part of the sequence number. | |
Static Public Attributes | |
static final SequenceNumber_t | SEQUENCE_NUMBER_UNKNOWN |
Unknown sequence number. | |
static final SequenceNumber_t | AUTO_SEQUENCE_NUMBER |
The sequence number is internally determined by RTI Connext. | |
static final SequenceNumber_t | SEQUENCE_NUMBER_ZERO |
Zero value for the sequence number. | |
static final SequenceNumber_t | SEQUENCE_NUMBER_MAX |
Highest, most positive value for the sequence number. | |
Additional Inherited Members | |
Protected Member Functions inherited from Struct | |
Struct () | |
abstract void | pull_from_nativeI (long native_status) |
abstract void | push_to_nativeI (long native_status) |
Type for sequence number representation.
Represents a 64-bit sequence number.
SequenceNumber_t | ( | ) |
Constructor.
Copy constructor.
sn | The sequence number instance to copy. It must not be null. |
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 |
int compare | ( | SequenceNumber_t | sn | ) |
Compares two sequence numbers.
sn | <<in>> Sequence number to compare. Cannot be null. |
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)
SequenceNumber_t subtract | ( | SequenceNumber_t | val | ) |
Returns a sequence number whose value is (this - val)
|
static |
Unknown sequence number.
|
static |
The sequence number is internally determined by RTI Connext.
|
static |
Zero value for the sequence number.
|
static |
Highest, most positive value for the sequence number.
int high |
The most significant part of the sequence number.
long low |
The least significant part of the sequence number.