private static PutRecordBatchResult putRecordBatch ( List < Record > recordList ) { PutRecordBatchRequest putRecordBatchRequest = new PutRecordBatchRequest ( ) ; putRecordBatchRequest . setDeliveryStreamName ( deliveryStreamName ) ; putRecordBatchRequest . setRecords ( recordList ) ; // Put Record Batch records. Max No.Of Records we can put in a // single put record batch request is 500 return firehoseClient . putRecordBatch ( putRecordBatchRequest ) ; }
Method to perform PutRecordBatch operation with the given record list .