public interface IKinesisProxy
| Modifier and Type | Method and Description |
|---|---|
GetRecordsResult |
get(String shardIterator,
int maxRecords)
Get records from stream.
|
Set<String> |
getAllShardIds()
Fetch the shardIds of all shards in the stream.
|
String |
getIterator(String shardId,
String iteratorEnum,
String sequenceNumber)
Fetch a shard iterator from the specified position in the shard.
|
List<Shard> |
getShardList()
Fetch all the shards defined for the stream (e.g.
|
DescribeStreamResult |
getStreamInfo(String startShardId)
Fetch information about stream.
|
PutRecordResult |
put(String sequenceNumberForOrdering,
String explicitHashKey,
String partitionKey,
ByteBuffer data) |
GetRecordsResult get(String shardIterator, int maxRecords) throws ResourceNotFoundException, InvalidArgumentException, ExpiredIteratorException
shardIterator - Fetch data records using this shard iteratormaxRecords - Fetch at most this many recordsInvalidArgumentException - Invalid input parametersResourceNotFoundException - The Kinesis stream or shard was not foundExpiredIteratorException - The iterator has expiredDescribeStreamResult getStreamInfo(String startShardId) throws ResourceNotFoundException
startShardId - exclusive start shardId - used when paginating the list of shards.ResourceNotFoundException - The Kinesis stream was not foundSet<String> getAllShardIds() throws ResourceNotFoundException
ResourceNotFoundException - If the specified Kinesis stream was not foundList<Shard> getShardList() throws ResourceNotFoundException
ResourceNotFoundException - The Kinesis stream was not found.String getIterator(String shardId, String iteratorEnum, String sequenceNumber) throws ResourceNotFoundException, InvalidArgumentException
shardId - Shard iditeratorEnum - one of: TRIM_HORIZON, LATEST, AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBERsequenceNumber - the sequence number - must be null unless iteratorEnum is AT_SEQUENCE_NUMBER or
AFTER_SEQUENCE_NUMBERResourceNotFoundException - The Kinesis stream or shard was not foundInvalidArgumentException - Invalid input parametersPutRecordResult put(String sequenceNumberForOrdering, String explicitHashKey, String partitionKey, ByteBuffer data) throws ResourceNotFoundException, InvalidArgumentException
sequenceNumberForOrdering - (optional) used for record orderingexplicitHashKey - optionally supplied transformation of partitionkeypartitionKey - for this recorddata - payloadResourceNotFoundException - The Kinesis stream was not found.InvalidArgumentException - InvalidArgumentException.