public static interface KinesisConsumerStates.ConsumerState
| Modifier and Type | Method and Description |
|---|---|
ITask |
createTask(KinesisShardConsumer consumer)
Creates a new task for this state using the passed in consumer to build the task.
|
KinesisConsumerStates.ShardConsumerState |
getState()
An enumeration represent the type of this state.
|
TaskType |
getTaskType()
The type of task that
createTask(KinesisShardConsumer) would return. |
boolean |
isTerminal() |
KinesisConsumerStates.ConsumerState |
shutdownTransition(ShutdownReason shutdownReason)
Provides the next state of the consumer when a shutdown has been requested.
|
KinesisConsumerStates.ConsumerState |
successTransition()
Provides the next state of the consumer upon success of the task return by
createTask(KinesisShardConsumer). |
ITask createTask(KinesisShardConsumer consumer)
KinesisConsumerStates.ConsumerState's are allowed to modify the
consumer during the execution of this method.consumer - the consumer to use build the task, or execute state.KinesisConsumerStates.ConsumerState successTransition()
createTask(KinesisShardConsumer).KinesisConsumerStates.ConsumerState shutdownTransition(ShutdownReason shutdownReason)
shutdownReason - the reason that a shutdown was requestedTaskType getTaskType()
createTask(KinesisShardConsumer) would return. This is always a valid state
even if createTask would return a null value.KinesisConsumerStates.ShardConsumerState getState()
KinesisConsumerStates.ShardConsumerState.boolean isTerminal()
Copyright © 2024. All rights reserved.