public interface IRecordProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(String shardId)
Invoked by the Amazon Kinesis Client Library before data records are delivered to the RecordProcessor instance
(via processRecords).
|
void |
processRecords(List<com.amazonaws.services.kinesis.model.Record> records,
IRecordProcessorCheckpointer checkpointer)
Process data records.
|
void |
shutdown(IRecordProcessorCheckpointer checkpointer,
ShutdownReason reason)
Invoked by the Amazon Kinesis Client Library to indicate it will no longer send data records to this
RecordProcessor instance.
|
void initialize(String shardId)
shardId - The record processor will be responsible for processing records of this shard.void processRecords(List<com.amazonaws.services.kinesis.model.Record> records, IRecordProcessorCheckpointer checkpointer)
records - Data records to be processedcheckpointer - RecordProcessor should use this instance to checkpoint their progress.void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason)
checkpointer - RecordProcessor should use this instance to checkpoint.reason - Reason for the shutdown (ShutdownReason.TERMINATE indicates the shard is closed and there are no
more records to process. Shutdown.ZOMBIE indicates a fail over has occurred).Copyright © 2024. All rights reserved.