public class KinesisRecordProcessor extends Object implements software.amazon.kinesis.processor.ShardRecordProcessor
ShardRecordProcessor interface to process data records fetched from Amazon
Kinesis| Modifier and Type | Class and Description |
|---|---|
static interface |
KinesisRecordProcessor.Factory |
| Modifier and Type | Field and Description |
|---|---|
String |
streamName |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(software.amazon.kinesis.lifecycle.events.InitializationInput initializationInput) |
void |
leaseLost(software.amazon.kinesis.lifecycle.events.LeaseLostInput leaseLostInput) |
void |
processRecords(software.amazon.kinesis.lifecycle.events.ProcessRecordsInput processRecordsInput)
Forward each byte record of
ProcessRecordsInput to the AWSKinesisStreamListener
interface |
void |
shardEnded(software.amazon.kinesis.lifecycle.events.ShardEndedInput shardEndedInput) |
void |
shutdownRequested(software.amazon.kinesis.lifecycle.events.ShutdownRequestedInput shutdownRequestedInput) |
public final String streamName
public void initialize(software.amazon.kinesis.lifecycle.events.InitializationInput initializationInput)
initialize in interface software.amazon.kinesis.processor.ShardRecordProcessorpublic void processRecords(software.amazon.kinesis.lifecycle.events.ProcessRecordsInput processRecordsInput)
ProcessRecordsInput to the AWSKinesisStreamListener
interfaceprocessRecords in interface software.amazon.kinesis.processor.ShardRecordProcessorprocessRecordsInput - ProcessRecordsInput to processpublic void leaseLost(software.amazon.kinesis.lifecycle.events.LeaseLostInput leaseLostInput)
leaseLost in interface software.amazon.kinesis.processor.ShardRecordProcessorpublic void shardEnded(software.amazon.kinesis.lifecycle.events.ShardEndedInput shardEndedInput)
shardEnded in interface software.amazon.kinesis.processor.ShardRecordProcessorpublic void shutdownRequested(software.amazon.kinesis.lifecycle.events.ShutdownRequestedInput shutdownRequestedInput)
shutdownRequested in interface software.amazon.kinesis.processor.ShardRecordProcessorCopyright © 2016–2021. All rights reserved.