Adds a message to the next batch to be sent to the configured stream.
Adds a message to the next batch to be sent to the configured stream.
On success: Future{UserRecordResult} On failure: Future.failed(...): Any Throwable related to put.
UserRecordFailedException
KinesisProducerConfiguration#setRecordTtl(long)
UserRecordResult
Callee com.amazonaws.services.kinesis.producer.KinesisProducer.addUserRecord
true if the KinesisProducer has been stopped & destroyed.
Get the number of unfinished records currently being processed.
Get the number of unfinished records currently being processed. The records could either be waiting to be sent to the child process, or have reached the child process and are being worked on.
This is equal to the number of futures returned from addUserRecord that have not finished.
This is useful for applying backpressure and throttling the number of concurrent Futures.
The number of unfinished records currently being processed.
Firstly, blocks whilst all all records are complete (either succeeding or failing).
Firstly, blocks whilst all all records are complete (either succeeding or failing).
The includes whilst any retries are performed. Depending on your configuration of record TTL and request timeout, this can potentially take a long time if the library is having trouble delivering records to the backend, for example due to network problems.
Finally the KinesisProducer is destroyed, preventing further use.
com.amazonaws.services.kinesis.producer.DaemonException
if the child process is dead //TODO - handle this better?
AWSKinesisProducer