public interface IKinesisProxy
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.kinesis.model.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,
Date timestamp)
Fetch a shard iterator from the specified position in the shard.
|
String |
getIterator(String shardId,
String iteratorEnum)
Fetch a shard iterator from the specified position in the shard.
|
String |
getIterator(String shardId,
String iteratorEnum,
String sequenceNumber)
Fetch a shard iterator from the specified position in the shard.
|
List<com.amazonaws.services.kinesis.model.Shard> |
getShardList()
Fetch all the shards defined for the stream (e.g.
|
List<com.amazonaws.services.kinesis.model.Shard> |
getShardListWithFilter(com.amazonaws.services.kinesis.model.ShardFilter shardFilter)
Fetch a subset shards defined for the stream using a filter on the ListShards API.
|
com.amazonaws.services.kinesis.model.DescribeStreamResult |
getStreamInfo(String startShardId)
Deprecated.
Going forward this method is
being deprecated. This method uses DescribeStream call, which is throttled at 10 calls per account by default.
If possible try to use ListShards call available in the client, or use the getShardList or getAllShards to get
shard info. To make DescribeStream calls, use the AmazonKinesis client directly instead of using KinesisProxy.
This method will be removed in the next major/minor release.
|
com.amazonaws.services.kinesis.model.PutRecordResult |
put(String sequenceNumberForOrdering,
String explicitHashKey,
String partitionKey,
ByteBuffer data) |
ShardClosureVerificationResponse |
verifyShardClosure(String shardId)
Used to verify during ShardConsumer shutdown if the provided shardId is for a shard that has been closed.
|
com.amazonaws.services.kinesis.model.GetRecordsResult get(String shardIterator, int maxRecords) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException, com.amazonaws.services.kinesis.model.InvalidArgumentException, com.amazonaws.services.kinesis.model.ExpiredIteratorException
shardIterator - Fetch data records using this shard iteratormaxRecords - Fetch at most this many recordscom.amazonaws.services.kinesis.model.InvalidArgumentException - Invalid input parameterscom.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream or shard was not foundcom.amazonaws.services.kinesis.model.ExpiredIteratorException - The iterator has expired@Deprecated com.amazonaws.services.kinesis.model.DescribeStreamResult getStreamInfo(String startShardId) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException
startShardId - exclusive start shardId - used when paginating the list of shards.com.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream was not foundSet<String> getAllShardIds() throws com.amazonaws.services.kinesis.model.ResourceNotFoundException
com.amazonaws.services.kinesis.model.ResourceNotFoundException - If the specified Kinesis stream was not foundList<com.amazonaws.services.kinesis.model.Shard> getShardList() throws com.amazonaws.services.kinesis.model.ResourceNotFoundException
com.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream was not found.List<com.amazonaws.services.kinesis.model.Shard> getShardListWithFilter(com.amazonaws.services.kinesis.model.ShardFilter shardFilter) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException
shardFilter - currently supported filter types are AT_LATEST, AT_TRIM_HORIZON, AT_TIMESTAMP.com.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream was not found.ShardClosureVerificationResponse verifyShardClosure(String shardId)
shardId - Id of the shard that needs to be verified.String getIterator(String shardId, String iteratorEnum, String sequenceNumber) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException, com.amazonaws.services.kinesis.model.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_NUMBERcom.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream or shard was not foundcom.amazonaws.services.kinesis.model.InvalidArgumentException - Invalid input parametersString getIterator(String shardId, String iteratorEnum) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException, com.amazonaws.services.kinesis.model.InvalidArgumentException
shardId - Shard iditeratorEnum - Either TRIM_HORIZON or LATEST.com.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream or shard was not foundcom.amazonaws.services.kinesis.model.InvalidArgumentException - Invalid input parametersString getIterator(String shardId, Date timestamp) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException, com.amazonaws.services.kinesis.model.InvalidArgumentException
shardId - Shard idtimestamp - The timestamp.com.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream or shard was not foundcom.amazonaws.services.kinesis.model.InvalidArgumentException - Invalid input parameterscom.amazonaws.services.kinesis.model.PutRecordResult put(String sequenceNumberForOrdering, String explicitHashKey, String partitionKey, ByteBuffer data) throws com.amazonaws.services.kinesis.model.ResourceNotFoundException, com.amazonaws.services.kinesis.model.InvalidArgumentException
sequenceNumberForOrdering - (optional) used for record orderingexplicitHashKey - optionally supplied transformation of partitionkeypartitionKey - for this recorddata - payloadcom.amazonaws.services.kinesis.model.ResourceNotFoundException - The Kinesis stream was not found.com.amazonaws.services.kinesis.model.InvalidArgumentException - InvalidArgumentException.Copyright © 2021. All rights reserved.