public abstract class AbstractKinesisRecorder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
deleteAllRecords()
Removes all requests saved to disk in the directory provided this
KinesisRecorder.
|
long |
getDiskByteLimit()
Returns the max number of bytes that this Kinesis Recorder will store on
disk.
|
long |
getDiskBytesUsed()
Returns the number of bytes KinesisRecorder currently has stored in the
directory passed in the constructor.
|
KinesisRecorderConfig |
getKinesisRecorderConfig()
Returns the KinesisRecorderConfig this Kinesis Recorder is using.
|
void |
saveRecord(byte[] data,
java.lang.String streamName)
Saves a record to local storage to be sent later.
|
void |
saveRecord(java.lang.String data,
java.lang.String streamName)
Saves a string to local storage to be sent later.
|
void |
submitAllRecords()
Submits all requests saved to Amazon Kinesis.
|
public void saveRecord(java.lang.String data, java.lang.String streamName)
data
- A string to submit to the streamstreamName
- The stream to submit the data to.public void saveRecord(byte[] data, java.lang.String streamName)
data
- The data to submit to the streamstreamName
- The stream to submit the data to.public void submitAllRecords()
AmazonClientException
- Thrown if there was an unrecoverable error
during submission. Note: If the request appears to be
invalid, the record will be deleted. If the request appears
to be valid, it will be kept.public KinesisRecorderConfig getKinesisRecorderConfig()
public long getDiskBytesUsed()
public long getDiskByteLimit()
public void deleteAllRecords()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.