public class SequenceNumberRange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The range of possible sequence numbers for the shard.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
endingSequenceNumber
The ending sequence number for the range.
|
private java.lang.String |
startingSequenceNumber
The starting sequence number for the range.
|
Constructor and Description |
---|
SequenceNumberRange() |
Modifier and Type | Method and Description |
---|---|
SequenceNumberRange |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEndingSequenceNumber()
The ending sequence number for the range.
|
java.lang.String |
getStartingSequenceNumber()
The starting sequence number for the range.
|
int |
hashCode() |
void |
setEndingSequenceNumber(java.lang.String endingSequenceNumber)
The ending sequence number for the range.
|
void |
setStartingSequenceNumber(java.lang.String startingSequenceNumber)
The starting sequence number for the range.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SequenceNumberRange |
withEndingSequenceNumber(java.lang.String endingSequenceNumber)
The ending sequence number for the range.
|
SequenceNumberRange |
withStartingSequenceNumber(java.lang.String startingSequenceNumber)
The starting sequence number for the range.
|
private java.lang.String startingSequenceNumber
The starting sequence number for the range.
private java.lang.String endingSequenceNumber
The ending sequence number for the range. Shards that are in the OPEN
state have an ending sequence number of null
.
public void setStartingSequenceNumber(java.lang.String startingSequenceNumber)
The starting sequence number for the range.
startingSequenceNumber
- The starting sequence number for the range.public java.lang.String getStartingSequenceNumber()
The starting sequence number for the range.
public SequenceNumberRange withStartingSequenceNumber(java.lang.String startingSequenceNumber)
The starting sequence number for the range.
startingSequenceNumber
- The starting sequence number for the range.public void setEndingSequenceNumber(java.lang.String endingSequenceNumber)
The ending sequence number for the range. Shards that are in the OPEN
state have an ending sequence number of null
.
endingSequenceNumber
- The ending sequence number for the range. Shards that are in the
OPEN state have an ending sequence number of null
.public java.lang.String getEndingSequenceNumber()
The ending sequence number for the range. Shards that are in the OPEN
state have an ending sequence number of null
.
null
.public SequenceNumberRange withEndingSequenceNumber(java.lang.String endingSequenceNumber)
The ending sequence number for the range. Shards that are in the OPEN
state have an ending sequence number of null
.
endingSequenceNumber
- The ending sequence number for the range. Shards that are in the
OPEN state have an ending sequence number of null
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SequenceNumberRange clone()
clone
in class java.lang.Object