public interface IRecordProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(InitializationInput initializationInput)
Invoked by the Amazon Kinesis Client Library before data records are delivered to the RecordProcessor instance
(via processRecords).
|
void |
processRecords(ProcessRecordsInput processRecordsInput)
Process data records.
|
void |
shutdown(ShutdownInput shutdownInput)
Invoked by the Amazon Kinesis Client Library to indicate it will no longer send data records to this
RecordProcessor instance.
|
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 shutdown(ShutdownInput shutdownInput)
ShutdownInput.getShutdownReason() is
ShutdownReason.TERMINATE it is required that you
checkpoint. Failure to do so will result in an IllegalArgumentException, and the KCL no longer making progress.shutdownInput - Provides information and capabilities (eg checkpointing) related to shutdown of this record processor.Copyright © 2017. All rights reserved.