public class KinesisShardConsumer extends Object implements IShardConsumer
IShardConsumer.TaskOutcome| Modifier and Type | Method and Description |
|---|---|
boolean |
beginShutdown()
Shutdown this ShardConsumer (including invoking the RecordProcessor shutdown API).
|
boolean |
consumeShard()
No-op if current task is pending, otherwise submits next task for this shard.
|
KinesisConsumerStates.ShardConsumerState |
getCurrentState()
Private/Internal method - has package level access solely for testing purposes.
|
ShutdownReason |
getShutdownReason() |
boolean |
isShutdown()
Used (by Worker) to check if this ShardConsumer instance has been shutdown
RecordProcessor shutdown() has been invoked, as appropriate.
|
boolean |
isShutdownRequested() |
boolean |
isSkipShardSyncAtWorkerInitializationIfLeasesExist() |
void |
notifyShutdownRequested(ShutdownNotification shutdownNotification)
Requests the shutdown of the this ShardConsumer.
|
public boolean consumeShard()
consumeShard in interface IShardConsumerpublic boolean isSkipShardSyncAtWorkerInitializationIfLeasesExist()
isSkipShardSyncAtWorkerInitializationIfLeasesExist in interface IShardConsumerpublic void notifyShutdownRequested(ShutdownNotification shutdownNotification)
notifyShutdownRequested in interface IShardConsumershutdownNotification - used to signal that the record processor has been given the chance to shutdown.public boolean beginShutdown()
beginShutdown in interface IShardConsumerpublic boolean isShutdown()
isShutdown in interface IShardConsumerpublic ShutdownReason getShutdownReason()
getShutdownReason in interface IShardConsumerpublic boolean isShutdownRequested()
isShutdownRequested in interface IShardConsumerpublic KinesisConsumerStates.ShardConsumerState getCurrentState()
getCurrentState in interface IShardConsumerCopyright © 2023. All rights reserved.