public class KinesisClientLibraryPipelinedRecordProcessorFactory extends Object implements com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory
IRecordProcessorFactory to decouple fetching records and processing records in the created IRecordProcessor. The
IRecordProcessor must checkpoint using the IRecordProcessorCheckpointer.checkpoint(String) method with a specific sequence number.
Checkpointing using IRecordProcessorCheckpointer.checkpoint() may only be used in
IRecordProcessor.shutdown(IRecordProcessorCheckpointer, ShutdownReason). Using IRecordProcessorCheckpointer.checkpoint() in processRecords
will result in an UnsupportedOperationException.| Constructor and Description |
|---|
KinesisClientLibraryPipelinedRecordProcessorFactory(com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory factory,
int maxQueueSize)
Constructor to wrap an
IRecordProcessorFactory as a pipelined record processor factory. |
KinesisClientLibraryPipelinedRecordProcessorFactory(com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory factory,
int maxQueueSize,
Long maxQueueWaitTimeMs,
Long maxProcessRecordsWaitTimeMs)
Constructor to wrap an
IRecordProcessorFactory as a pipelined record processor factory. |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessor |
createProcessor() |
public KinesisClientLibraryPipelinedRecordProcessorFactory(com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory factory,
int maxQueueSize)
IRecordProcessorFactory as a pipelined record processor factory. Default values are used for maximum queue wait time and
maximum process records wait time.factory - The IRecordProcessorFactory to wrapmaxQueueSize - The maximum number of records to retrieve and buffer in memorypublic KinesisClientLibraryPipelinedRecordProcessorFactory(com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory factory,
int maxQueueSize,
Long maxQueueWaitTimeMs,
Long maxProcessRecordsWaitTimeMs)
IRecordProcessorFactory as a pipelined record processor factory. If null values are passed for maxQueueWaitTimeMs or
maxProcessRecordsWaitTimeMs, default values are used.factory - The IRecordProcessorFactory to wrapmaxQueueSize - The maximum number of records to retrieve and buffer in memorymaxQueueWaitTimeMs - Maximum time to block on the queue waiting for GetRecords result in millisecondsmaxProcessRecordsWaitTimeMs - Maximum time to wait for the queue consumer to shutdown (finish ProcessRecords call) in millisecondsCopyright © 2016. All rights reserved.