public class SequenceNumberRange extends Object implements Serializable, Cloneable
The range of possible sequence numbers for the shard.
| Constructor and Description |
|---|
SequenceNumberRange() |
| Modifier and Type | Method and Description |
|---|---|
SequenceNumberRange |
clone() |
boolean |
equals(Object obj) |
String |
getEndingSequenceNumber()
The ending sequence number for the range.
|
String |
getStartingSequenceNumber()
The starting sequence number for the range.
|
int |
hashCode() |
void |
setEndingSequenceNumber(String endingSequenceNumber)
The ending sequence number for the range.
|
void |
setStartingSequenceNumber(String startingSequenceNumber)
The starting sequence number for the range.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SequenceNumberRange |
withEndingSequenceNumber(String endingSequenceNumber)
The ending sequence number for the range.
|
SequenceNumberRange |
withStartingSequenceNumber(String startingSequenceNumber)
The starting sequence number for the range.
|
public String getStartingSequenceNumber()
Constraints:
Pattern: 0|([1-9]\d{0,128})
public void setStartingSequenceNumber(String startingSequenceNumber)
Constraints:
Pattern: 0|([1-9]\d{0,128})
startingSequenceNumber - The starting sequence number for the range.public SequenceNumberRange withStartingSequenceNumber(String startingSequenceNumber)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: 0|([1-9]\d{0,128})
startingSequenceNumber - The starting sequence number for the range.public String getEndingSequenceNumber()
null.
Constraints:
Pattern: 0|([1-9]\d{0,128})
null.public void setEndingSequenceNumber(String endingSequenceNumber)
null.
Constraints:
Pattern: 0|([1-9]\d{0,128})
endingSequenceNumber - The ending sequence number for the range. Shards that are in the OPEN
state have an ending sequence number of null.public SequenceNumberRange withEndingSequenceNumber(String endingSequenceNumber)
null.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: 0|([1-9]\d{0,128})
endingSequenceNumber - The ending sequence number for the range. Shards that are in the OPEN
state have an ending sequence number of null.public String toString()
toString in class ObjectObject.toString()public SequenceNumberRange clone()
Copyright © 2015. All rights reserved.