public class DynamoDBStreamsShardConsumer
extends java.lang.Object
implements com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumer
| 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.
|
com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisConsumerStates.ShardConsumerState |
getCurrentState()
Private/Internal method - has package level access solely for testing purposes.
|
com.amazonaws.services.kinesis.clientlibrary.lib.worker.GetRecordsCache |
getGetRecordsCache() |
com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShardSyncer |
getShardSyncer() |
com.amazonaws.services.kinesis.clientlibrary.lib.worker.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(com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShutdownNotification shutdownNotification)
Requests the shutdown of the this ShardConsumer.
|
public com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShardSyncer getShardSyncer()
public com.amazonaws.services.kinesis.clientlibrary.lib.worker.GetRecordsCache getGetRecordsCache()
public boolean consumeShard()
consumeShard in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumerpublic boolean isSkipShardSyncAtWorkerInitializationIfLeasesExist()
isSkipShardSyncAtWorkerInitializationIfLeasesExist in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumerpublic void notifyShutdownRequested(com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShutdownNotification shutdownNotification)
notifyShutdownRequested in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumershutdownNotification - used to signal that the record processor has been given the chance to shutdown.public boolean beginShutdown()
beginShutdown in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumerpublic boolean isShutdown()
isShutdown in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumerpublic com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShutdownReason getShutdownReason()
getShutdownReason in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumerpublic boolean isShutdownRequested()
isShutdownRequested in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumerpublic com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisConsumerStates.ShardConsumerState getCurrentState()
getCurrentState in interface com.amazonaws.services.kinesis.clientlibrary.lib.worker.IShardConsumer