public class MultiLangRecordProcessor extends Object implements IRecordProcessor, IShutdownNotificationAware
MultiLangProtocol object and calling the appropriate methods on
that object when its corresponding initialize(com.amazonaws.services.kinesis.clientlibrary.types.InitializationInput), processRecords(com.amazonaws.services.kinesis.clientlibrary.types.ProcessRecordsInput), and shutdown(com.amazonaws.services.kinesis.clientlibrary.types.ShutdownInput) methods are
called.| 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 |
shutdownRequested(IRecordProcessorCheckpointer checkpointer)
Called when the worker has been requested to shutdown, and gives the record processor a chance to checkpoint.
|
public void initialize(InitializationInput initializationInput)
IRecordProcessorinitialize in interface IRecordProcessorinitializationInput - Provides information related to initializationpublic void processRecords(ProcessRecordsInput processRecordsInput)
IRecordProcessorprocessRecords in interface IRecordProcessorprocessRecordsInput - Provides the records to be processed as well as information and capabilities related
to them (eg checkpointing).public void shutdown(ShutdownInput shutdownInput)
IRecordProcessorShutdownInput.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.shutdown in interface IRecordProcessorshutdownInput - Provides information and capabilities (eg checkpointing) related to shutdown of this record processor.public void shutdownRequested(IRecordProcessorCheckpointer checkpointer)
IShutdownNotificationAwareshutdownRequested in interface IShutdownNotificationAwarecheckpointer - the checkpointer that can be used to save progress.Copyright © 2024. All rights reserved.