public class HierarchicalShardSyncer extends Object
| Constructor and Description |
|---|
HierarchicalShardSyncer() |
HierarchicalShardSyncer(boolean isMultiStreamMode,
String streamIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndCreateLeaseForNewShards(ShardDetector shardDetector,
LeaseRefresher leaseRefresher,
InitialPositionInStreamExtended initialPosition,
List<software.amazon.awssdk.services.kinesis.model.Shard> latestShards,
boolean ignoreUnexpectedChildShards,
MetricsScope scope,
boolean isLeaseTableEmpty) |
boolean |
checkAndCreateLeaseForNewShards(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 boolean checkAndCreateLeaseForNewShards(@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
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 © 2021. All rights reserved.