T - the data type stored in the recordpublic interface IEmitter<T>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
emit(UnmodifiableBuffer<T> buffer)
Invoked when the buffer is full.
|
void |
fail(List<T> records)
This method defines how to handle a set of records that cannot successfully be emitted.
|
void |
shutdown()
This method is called when the KinesisConnectorRecordProcessor is shutdown.
|
List<T> emit(UnmodifiableBuffer<T> buffer) throws IOException
buffer - The full buffer of recordsIOException - A failure was reached that is not recoverable, no retry will occur and the fail
method will be calledvoid fail(List<T> records)
records - a list of records that were not successfully emittedvoid shutdown()
Copyright © 2016. All rights reserved.