Example usage for com.amazonaws.services.kinesisfirehose.model PutRecordResult toString

List of usage examples for com.amazonaws.services.kinesisfirehose.model PutRecordResult toString

Introduction

In this page you can find the example usage for com.amazonaws.services.kinesisfirehose.model PutRecordResult toString.

Prototype

@Override
public String toString() 

Source Link

Document

Returns a string representation of this object.

Usage

From source file:ch.bbv.application.lambda.KinesisToFirehose.java

private void putSampleMessages() {
    setup();/*from w w  w .  jav a  2 s. c  o m*/
    for (int i = 0; i < 20000; i++) {
        String message = "{\"timestamp\":\"" + new Date().getTime() + "\"}";
        Record record = new Record().withData(ByteBuffer.wrap(message.getBytes()));
        PutRecordRequest putRecordInHoseRequest = new PutRecordRequest()
                .withDeliveryStreamName(deliveryStreamName).withRecord(record);

        PutRecordResult res = firehoseClient.putRecord(putRecordInHoseRequest);
        logIt(res.toString());
    }
}