public class MultiLangRecordProcessor extends Object implements IRecordProcessor
MultiLangProtocol object and calling the appropriate methods on
that object when its corresponding initialize(java.lang.String), processRecords(java.util.List<com.amazonaws.services.kinesis.model.Record>, com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorCheckpointer), and shutdown(com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorCheckpointer, com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShutdownReason) methods are
called.| Modifier and Type | Method and Description |
|---|---|
void |
initialize(String shardIdToProcess)
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.
|
public void initialize(String shardIdToProcess)
IRecordProcessorinitialize in interface IRecordProcessorshardIdToProcess - The record processor will be responsible for processing records of this shard.public void processRecords(List<com.amazonaws.services.kinesis.model.Record> records, IRecordProcessorCheckpointer checkpointer)
IRecordProcessorprocessRecords in interface IRecordProcessorrecords - Data records to be processedcheckpointer - RecordProcessor should use this instance to checkpoint their progress.public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason)
IRecordProcessorshutdown in interface IRecordProcessorcheckpointer - 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 © 2016. All rights reserved.