public class ElasticsearchEmitter extends Object implements IEmitter<ElasticsearchObject>
| Constructor and Description |
|---|
ElasticsearchEmitter(KinesisConnectorConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
List<ElasticsearchObject> |
emit(UnmodifiableBuffer<ElasticsearchObject> buffer)
Emits records to elasticsearch.
|
void |
fail(List<ElasticsearchObject> 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.
|
public ElasticsearchEmitter(KinesisConnectorConfiguration configuration)
public List<ElasticsearchObject> emit(UnmodifiableBuffer<ElasticsearchObject> buffer) throws IOException
emit in interface IEmitter<ElasticsearchObject>buffer - The full buffer of recordsIOException - A failure was reached that is not recoverable, no retry will occur and the fail
method will be calledpublic void fail(List<ElasticsearchObject> records)
IEmitterfail in interface IEmitter<ElasticsearchObject>records - a list of records that were not successfully emittedpublic void shutdown()
IEmittershutdown in interface IEmitter<ElasticsearchObject>Copyright © 2016. All rights reserved.