public class KinesisShardDetector extends Object implements ShardDetector
| Constructor and Description |
|---|
KinesisShardDetector(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
StreamIdentifier streamIdentifier,
long listShardsBackoffTimeInMillis,
int maxListShardsRetryAttempts,
long listShardsCacheAllowedAgeInSeconds,
int maxCacheMissesBeforeReload,
int cacheMissWarningModulus,
Duration kinesisRequestTimeout) |
KinesisShardDetector(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
String streamName,
long listShardsBackoffTimeInMillis,
int maxListShardsRetryAttempts,
long listShardsCacheAllowedAgeInSeconds,
int maxCacheMissesBeforeReload,
int cacheMissWarningModulus)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<software.amazon.awssdk.services.kinesis.model.ChildShard> |
getChildShards(String shardId)
Gets the children shards of a shard.
|
software.amazon.awssdk.services.kinesis.model.ListShardsResponse |
getListShardsResponse(software.amazon.awssdk.services.kinesis.model.ListShardsRequest request)
Gets a list shards response based on the request.
|
List<software.amazon.awssdk.services.kinesis.model.Shard> |
listShards()
List shards.
|
List<software.amazon.awssdk.services.kinesis.model.Shard> |
listShardsWithFilter(software.amazon.awssdk.services.kinesis.model.ShardFilter shardFilter)
List shards with shard filter.
|
List<software.amazon.awssdk.services.kinesis.model.Shard> |
listShardsWithoutConsumingResourceNotFoundException()
This method behaves exactly similar to listShards except the fact that this does not consume and throw
ResourceNotFoundException instead of returning empty list.
|
software.amazon.awssdk.services.kinesis.model.Shard |
shard(@NonNull String shardId)
Gets shard based on shardId.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstreamIdentifier@Deprecated public KinesisShardDetector(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient, String streamName, long listShardsBackoffTimeInMillis, int maxListShardsRetryAttempts, long listShardsCacheAllowedAgeInSeconds, int maxCacheMissesBeforeReload, int cacheMissWarningModulus)
public KinesisShardDetector(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
StreamIdentifier streamIdentifier,
long listShardsBackoffTimeInMillis,
int maxListShardsRetryAttempts,
long listShardsCacheAllowedAgeInSeconds,
int maxCacheMissesBeforeReload,
int cacheMissWarningModulus,
Duration kinesisRequestTimeout)
public software.amazon.awssdk.services.kinesis.model.Shard shard(@NonNull
@NonNull String shardId)
ShardDetectorshard in interface ShardDetectorpublic List<software.amazon.awssdk.services.kinesis.model.Shard> listShards()
ShardDetectorlistShards in interface ShardDetectorpublic List<software.amazon.awssdk.services.kinesis.model.Shard> listShardsWithoutConsumingResourceNotFoundException()
ShardDetectorlistShardsWithoutConsumingResourceNotFoundException in interface ShardDetectorpublic List<software.amazon.awssdk.services.kinesis.model.Shard> listShardsWithFilter(software.amazon.awssdk.services.kinesis.model.ShardFilter shardFilter)
ShardDetectorlistShardsWithFilter in interface ShardDetectorpublic software.amazon.awssdk.services.kinesis.model.ListShardsResponse getListShardsResponse(software.amazon.awssdk.services.kinesis.model.ListShardsRequest request)
throws ExecutionException,
TimeoutException,
InterruptedException
ShardDetectorgetListShardsResponse in interface ShardDetectorrequest - list shards requestExecutionExceptionTimeoutExceptionInterruptedExceptionpublic List<software.amazon.awssdk.services.kinesis.model.ChildShard> getChildShards(String shardId) throws InterruptedException, ExecutionException, TimeoutException
ShardDetectorgetChildShards in interface ShardDetectorInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2025. All rights reserved.