T - the data type stored in the recordpublic interface IBuffer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the buffer
|
void |
consumeRecord(T record,
int recordBytes,
String sequenceNumber)
Stores the record in the buffer
|
long |
getBytesToBuffer()
Get the byte size limit of data stored in the buffer before the records are flushed to the
emitter
|
String |
getFirstSequenceNumber()
Get the sequence number of the first record stored in the buffer.
|
String |
getLastSequenceNumber()
Get the sequence number of the last record stored in the buffer.
|
long |
getMillisecondsToBuffer()
Get the time limit in milliseconds before the records are flushed to the emitter
|
long |
getNumRecordsToBuffer()
Get the record number limit of data stored in the buffer before the records are flushed to
the emitter
|
List<T> |
getRecords()
Get the records stored in the buffer
|
boolean |
shouldFlush()
Returns true if the buffer is full and stored records should be sent to the emitter
|
long getBytesToBuffer()
long getNumRecordsToBuffer()
long getMillisecondsToBuffer()
boolean shouldFlush()
void consumeRecord(T record, int recordBytes, String sequenceNumber)
record - record to be processedrecordBytes - size of the record data in bytessequenceNumber - Amazon Kinesis sequence identifiervoid clear()
String getFirstSequenceNumber()
String getLastSequenceNumber()
Copyright © 2016. All rights reserved.