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.
|
String |
getConcurrencyToken()
Concurrency token for the lease that this shard is part of
|
protected List<String> |
getParentShardIds()
A list of shards that are parents of this shard.
|
String |
getShardId()
The shardId that this ShardInfo contains data about
|
int |
hashCode() |
protected boolean |
isCompleted()
Whether the shard has been completely processed or not.
|
String |
toString() |
public ShardInfo(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 String getShardId()
public String getConcurrencyToken()
protected List<String> getParentShardIds()
protected boolean isCompleted()
public boolean equals(Object obj)
Copyright © 2018. All rights reserved.