public class ProcessRecordsInput
extends java.lang.Object
processRecords method.| Constructor and Description |
|---|
ProcessRecordsInput()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IRecordProcessorCheckpointer |
getCheckpointer()
Get Checkpointer.
|
java.lang.Long |
getMillisBehindLatest()
Get milliseconds behind latest.
|
java.util.List<Record> |
getRecords()
Get records.
|
ProcessRecordsInput |
withCheckpointer(IRecordProcessorCheckpointer checkpointer)
Set Checkpointer.
|
ProcessRecordsInput |
withMillisBehindLatest(java.lang.Long millisBehindLatest)
Set milliseconds behind latest.
|
ProcessRecordsInput |
withRecords(java.util.List<Record> records)
Set records.
|
public java.util.List<Record> getRecords()
public ProcessRecordsInput withRecords(java.util.List<Record> records)
records - Data records to be processedpublic IRecordProcessorCheckpointer getCheckpointer()
public ProcessRecordsInput withCheckpointer(IRecordProcessorCheckpointer checkpointer)
checkpointer - RecordProcessor should use this instance to checkpoint their progress.public java.lang.Long getMillisBehindLatest()
public ProcessRecordsInput withMillisBehindLatest(java.lang.Long millisBehindLatest)
millisBehindLatest - The number of milliseconds this batch of records is from the tip of the stream,
indicating how far behind current time the record processor is.