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.
|
software.amazon.awssdk.services.kinesis.model.Shard |
shard(String shardId)
Gets shard based on shardId.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
streamIdentifier
@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 String shardId)
ShardDetector
shard
in interface ShardDetector
public List<software.amazon.awssdk.services.kinesis.model.Shard> listShards()
ShardDetector
listShards
in interface ShardDetector
public List<software.amazon.awssdk.services.kinesis.model.Shard> listShardsWithFilter(software.amazon.awssdk.services.kinesis.model.ShardFilter shardFilter)
ShardDetector
listShardsWithFilter
in interface ShardDetector
public software.amazon.awssdk.services.kinesis.model.ListShardsResponse getListShardsResponse(software.amazon.awssdk.services.kinesis.model.ListShardsRequest request) throws ExecutionException, TimeoutException, InterruptedException
ShardDetector
getListShardsResponse
in interface ShardDetector
request
- list shards requestExecutionException
TimeoutException
InterruptedException
public List<software.amazon.awssdk.services.kinesis.model.ChildShard> getChildShards(String shardId) throws InterruptedException, ExecutionException, TimeoutException
ShardDetector
getChildShards
in interface ShardDetector
InterruptedException
ExecutionException
TimeoutException
Copyright © 2020. All rights reserved.