StreamShardHandle
.@Deprecated @Internal public class KinesisStreamShard extends Object implements Serializable
Shard
.Constructor and Description |
---|
KinesisStreamShard(String streamName,
com.amazonaws.services.kinesis.model.Shard shard)
Deprecated.
Create a new KinesisStreamShard.
|
Modifier and Type | Method and Description |
---|---|
static StreamShardMetadata |
convertToStreamShardMetadata(KinesisStreamShard kinesisStreamShard)
Deprecated.
Utility function to convert
KinesisStreamShard into the new StreamShardMetadata model. |
boolean |
equals(Object obj)
Deprecated.
|
com.amazonaws.services.kinesis.model.Shard |
getShard()
Deprecated.
|
String |
getStreamName()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isClosed()
Deprecated.
|
String |
toString()
Deprecated.
|
public KinesisStreamShard(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
KinesisStreamShardpublic String getStreamName()
public boolean isClosed()
public com.amazonaws.services.kinesis.model.Shard getShard()
public static StreamShardMetadata convertToStreamShardMetadata(KinesisStreamShard kinesisStreamShard)
KinesisStreamShard
into the new StreamShardMetadata
model.kinesisStreamShard
- the KinesisStreamShard
to be convertedStreamShardMetadata
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.