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