public class Shard
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A uniquely identified group of stream records within a stream.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
parentShardId
The shard ID of the current shard's parent.
|
private SequenceNumberRange |
sequenceNumberRange
The range of possible sequence numbers for the shard.
|
private java.lang.String |
shardId
The system-generated identifier for this shard.
|
Constructor and Description |
---|
Shard() |
Modifier and Type | Method and Description |
---|---|
Shard |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getParentShardId()
The shard ID of the current shard's parent.
|
SequenceNumberRange |
getSequenceNumberRange()
The range of possible sequence numbers for the shard.
|
java.lang.String |
getShardId()
The system-generated identifier for this shard.
|
int |
hashCode() |
void |
setParentShardId(java.lang.String parentShardId)
The shard ID of the current shard's parent.
|
void |
setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
void |
setShardId(java.lang.String shardId)
The system-generated identifier for this shard.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Shard |
withParentShardId(java.lang.String parentShardId)
The shard ID of the current shard's parent.
|
Shard |
withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
Shard |
withShardId(java.lang.String shardId)
The system-generated identifier for this shard.
|
private java.lang.String shardId
The system-generated identifier for this shard.
private SequenceNumberRange sequenceNumberRange
The range of possible sequence numbers for the shard.
private java.lang.String parentShardId
The shard ID of the current shard's parent.
public void setShardId(java.lang.String shardId)
The system-generated identifier for this shard.
shardId
- The system-generated identifier for this shard.public java.lang.String getShardId()
The system-generated identifier for this shard.
public Shard withShardId(java.lang.String shardId)
The system-generated identifier for this shard.
shardId
- The system-generated identifier for this shard.public void setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
sequenceNumberRange
- The range of possible sequence numbers for the shard.public SequenceNumberRange getSequenceNumberRange()
The range of possible sequence numbers for the shard.
public Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
sequenceNumberRange
- The range of possible sequence numbers for the shard.public void setParentShardId(java.lang.String parentShardId)
The shard ID of the current shard's parent.
parentShardId
- The shard ID of the current shard's parent.public java.lang.String getParentShardId()
The shard ID of the current shard's parent.
public Shard withParentShardId(java.lang.String parentShardId)
The shard ID of the current shard's parent.
parentShardId
- The shard ID of the current shard's parent.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 Shard clone()
clone
in class java.lang.Object