public interface ShardSyncStrategy
| Modifier and Type | Method and Description |
|---|---|
ShardSyncStrategyType |
getStrategyType()
Can be used to provide a custom name for the implemented strategy.
|
TaskResult |
onFoundCompletedShard()
Invoked when a completed shard is found.
|
TaskResult |
onShardConsumerShutDown()
Invoked when ShardConsumer is shutdown.
|
default TaskResult |
onShardConsumerShutDown(List<com.amazonaws.services.kinesis.model.Shard> latestShards)
Invoked when ShardConsumer is shutdown and all shards are provided.
|
TaskResult |
onWorkerInitialization()
Invoked at worker initialization
|
void |
onWorkerShutDown()
Invoked when worker is shutdown.
|
TaskResult |
syncShards()
Invoked when the KCL application wants to execute shard-sync.
|
ShardSyncStrategyType getStrategyType()
TaskResult syncShards()
TaskResult onWorkerInitialization()
TaskResult onFoundCompletedShard()
TaskResult onShardConsumerShutDown()
default TaskResult onShardConsumerShutDown(List<com.amazonaws.services.kinesis.model.Shard> latestShards)
latestShards - latest snapshot of shards to reusevoid onWorkerShutDown()
Copyright © 2023. All rights reserved.