public class KinesisConsumerStates extends Object
KinesisShardConsumer can be in. The logic for creation of tasks,
and state transitions is contained within the KinesisConsumerStates.ConsumerState objects.
+-------------------+
| Waiting on Parent | +------------------+
+----+ Shard | | Shutdown |
| | | +--------------------+ Notification |
| +----------+--------+ | Shutdown: | Requested |
| | Success | Requested +-+-------+--------+
| | | | |
| +------+-------------+ | | | Shutdown:
| | Initializing +-----+ | | Requested
| | | | | |
| | +-----+-------+ | |
| +---------+----------+ | | Shutdown: | +-----+-------------+
| | Success | | Terminated | | Shutdown |
| | | | Zombie | | Notification +-------------+
| +------+-------------+ | | | | Complete | |
| | Processing +--+ | | ++-----------+------+ |
| +---+ | | | | | |
| | | +----------+ | | | Shutdown: |
| | +------+-------------+ | \ / | Requested |
| | | | \/ +--------------------+
| | | | ||
| | Success | | || Shutdown:
| +----------+ | || Terminated
| | || Zombie
| | ||
| | ||
| | +---++--------------+
| | | Shutting Down |
| +-----------+ |
| | |
| +--------+----------+
| |
| | Shutdown:
| | All Reasons
| |
| |
| Shutdown: +--------+----------+
| All Reasons | Shutdown |
+-------------------------------------------------------+ Complete |
| |
+-------------------+
| Modifier and Type | Class and Description |
|---|---|
static interface |
KinesisConsumerStates.ConsumerState
Represents a the current state of the consumer.
|
static class |
KinesisConsumerStates.InitializingState
This state is responsible for initializing the record processor with the shard information.
|
static class |
KinesisConsumerStates.ShardConsumerState
Enumerates processing states when working on a shard.
|
| Constructor and Description |
|---|
KinesisConsumerStates() |
Copyright © 2024. All rights reserved.