public class HierarchicalShardSyncer extends Object
| Constructor and Description |
|---|
HierarchicalShardSyncer() |
HierarchicalShardSyncer(boolean isMultiStreamMode,
String streamIdentifier) |
HierarchicalShardSyncer(boolean isMultiStreamMode,
String streamIdentifier,
DeletedStreamListProvider deletedStreamListProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndCreateLeaseForNewShards(@NonNull ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
List<software.amazon.awssdk.services.kinesis.model.Shard> latestShards,
boolean ignoreUnexpectedChildShards,
MetricsScope scope,
boolean isLeaseTableEmpty)
Provide a pre-collected list of shards to avoid calling ListShards API
|
boolean |
checkAndCreateLeaseForNewShards(@NonNull ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
MetricsScope scope,
boolean ignoreUnexpectedChildShards,
boolean isLeaseTableEmpty)
Check and create leases for any new shards (e.g.
|
Lease |
createLeaseForChildShard(software.amazon.awssdk.services.kinesis.model.ChildShard childShard,
StreamIdentifier streamIdentifier) |
public HierarchicalShardSyncer()
public HierarchicalShardSyncer(boolean isMultiStreamMode,
String streamIdentifier)
public HierarchicalShardSyncer(boolean isMultiStreamMode,
String streamIdentifier,
DeletedStreamListProvider deletedStreamListProvider)
public boolean checkAndCreateLeaseForNewShards(@NonNull
@NonNull ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
MetricsScope scope,
boolean ignoreUnexpectedChildShards,
boolean isLeaseTableEmpty)
throws DependencyException,
InvalidStateException,
ProvisionedThroughputException,
KinesisClientLibIOException,
InterruptedException
shardDetector - leaseRefresher - initialPosition - scope - ignoreUnexpectedChildShards - DependencyExceptionInvalidStateExceptionProvisionedThroughputExceptionKinesisClientLibIOExceptionInterruptedExceptionpublic boolean checkAndCreateLeaseForNewShards(@NonNull
@NonNull ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
List<software.amazon.awssdk.services.kinesis.model.Shard> latestShards,
boolean ignoreUnexpectedChildShards,
MetricsScope scope,
boolean isLeaseTableEmpty)
throws DependencyException,
InvalidStateException,
ProvisionedThroughputException,
KinesisClientLibIOException
public Lease createLeaseForChildShard(software.amazon.awssdk.services.kinesis.model.ChildShard childShard, StreamIdentifier streamIdentifier) throws InvalidStateException
InvalidStateExceptionCopyright © 2025. All rights reserved.