@Internal public class StreamShardHandle extends Object
Shard, with some extra utility methods to determine whether
or not a shard is closed and whether or not the shard is a result of parent shard splits or merges.| Constructor and Description |
|---|
StreamShardHandle(String streamName,
com.amazonaws.services.kinesis.model.Shard shard)
Create a new StreamShardHandle.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
compareShardIds(String firstShardId,
String secondShardId)
Utility function to compare two shard ids.
|
boolean |
equals(Object obj) |
com.amazonaws.services.kinesis.model.Shard |
getShard() |
String |
getStreamName() |
int |
hashCode() |
boolean |
isClosed() |
String |
toString() |
public StreamShardHandle(String streamName, com.amazonaws.services.kinesis.model.Shard shard)
streamName - the name of the Kinesis stream that this shard belongs toshard - the actual AWS Shard instance that will be wrapped within this StreamShardHandlepublic String getStreamName()
public boolean isClosed()
public com.amazonaws.services.kinesis.model.Shard getShard()
public static int compareShardIds(String firstShardId, String secondShardId)
firstShardId - first shard id to comparesecondShardId - second shard id to compareCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.