public interface ShardRecordProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(InitializationInput initializationInput)
Invoked by the Amazon Kinesis Client Library before data records are delivered to the ShardRecordProcessor instance
(via processRecords).
|
void |
leaseLost(LeaseLostInput leaseLostInput)
Called when the lease that tied to this record processor has been lost.
|
void |
processRecords(ProcessRecordsInput processRecordsInput)
Process data records.
|
void |
shardEnded(ShardEndedInput shardEndedInput)
Called when the shard that this record process is handling has been completed.
|
void |
shutdownRequested(ShutdownRequestedInput shutdownRequestedInput)
Called when the Scheduler has been requested to shutdown.
|
void initialize(InitializationInput initializationInput)
initializationInput - Provides information related to initializationvoid processRecords(ProcessRecordsInput processRecordsInput)
processRecordsInput - Provides the records to be processed as well as information and capabilities related
to them (eg checkpointing).void leaseLost(LeaseLostInput leaseLostInput)
leaseLostInput - access to functions and data related to the loss of the lease. Currently this has no functionality.void shardEnded(ShardEndedInput shardEndedInput)
RecordProcessorCheckpointer.checkpoint(),
otherwise an exception will be thrown and the all child shards of this shard will not make progress.shardEndedInput - provides access to a checkpointer method for completing processing of the shard.void shutdownRequested(ShutdownRequestedInput shutdownRequestedInput)
leaseLost(LeaseLostInput) will be called at a later time.shutdownRequestedInput - provides access to a checkpointer allowing a record processor to checkpoint before the shutdown is
completed.Copyright © 2019. All rights reserved.