public class ProcessRecordsInput extends Object
processRecords method.| Constructor and Description |
|---|
ProcessRecordsInput()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IRecordProcessorCheckpointer |
getCheckpointer()
Get Checkpointer.
|
Long |
getMillisBehindLatest()
Get milliseconds behind latest.
|
List<com.amazonaws.services.kinesis.model.Record> |
getRecords()
Get records.
|
Duration |
getTimeSpentInCache() |
ProcessRecordsInput |
withCacheEntryTime(Instant cacheEntryTime) |
ProcessRecordsInput |
withCacheExitTime(Instant cacheExitTime) |
ProcessRecordsInput |
withCheckpointer(IRecordProcessorCheckpointer checkpointer)
Set Checkpointer.
|
ProcessRecordsInput |
withMillisBehindLatest(Long millisBehindLatest)
Set milliseconds behind latest.
|
ProcessRecordsInput |
withRecords(List<com.amazonaws.services.kinesis.model.Record> records)
Set records.
|
public List<com.amazonaws.services.kinesis.model.Record> getRecords()
public ProcessRecordsInput withRecords(List<com.amazonaws.services.kinesis.model.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 Long getMillisBehindLatest()
public ProcessRecordsInput withMillisBehindLatest(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.public ProcessRecordsInput withCacheEntryTime(Instant cacheEntryTime)
public ProcessRecordsInput withCacheExitTime(Instant cacheExitTime)
public Duration getTimeSpentInCache()
Copyright © 2017. All rights reserved.