Search in sources :

Example 1 with PutRecordResult

use of com.amazonaws.services.kinesisfirehose.model.PutRecordResult in project camel by apache.

the class KinesisFirehoseProducer method process.

@Override
public void process(Exchange exchange) throws Exception {
    PutRecordRequest request = createRequest(exchange);
    log.trace("Sending request [{}] from exchange [{}]...", request, exchange);
    PutRecordResult putRecordResult = getEndpoint().getClient().putRecord(request);
    log.trace("Received result [{}]", putRecordResult);
    Message message = getMessageForResponse(exchange);
    message.setHeader(KinesisFirehoseConstants.RECORD_ID, putRecordResult.getRecordId());
}
Also used : PutRecordResult(com.amazonaws.services.kinesisfirehose.model.PutRecordResult) Message(org.apache.camel.Message) PutRecordRequest(com.amazonaws.services.kinesisfirehose.model.PutRecordRequest)

Aggregations

PutRecordRequest (com.amazonaws.services.kinesisfirehose.model.PutRecordRequest)1 PutRecordResult (com.amazonaws.services.kinesisfirehose.model.PutRecordResult)1 Message (org.apache.camel.Message)1