public class ShardInfo extends Object
Constructor and Description |
---|
ShardInfo(String shardId,
String concurrencyToken,
Collection<String> parentShardIds,
ExtendedSequenceNumber checkpoint)
Creates a new ShardInfo object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
This method assumes parentShardIds is ordered.
|
int |
hashCode() |
boolean |
isCompleted()
Whether the shard has been completely processed or not.
|
List<String> |
parentShardIds()
A list of shards that are parents of this shard.
|
public ShardInfo(@NonNull String shardId, String concurrencyToken, Collection<String> parentShardIds, ExtendedSequenceNumber checkpoint)
shardId
- Kinesis shardId that this will be aboutconcurrencyToken
- Used to differentiate between lost and reclaimed leasesparentShardIds
- Parent shards of the shard identified by Kinesis shardIdcheckpoint
- the latest checkpoint from leasepublic List<String> parentShardIds()
public boolean isCompleted()
public boolean equals(Object obj)
Copyright © 2019. All rights reserved.