public interface ICheckpoint
| Modifier and Type | Method and Description |
|---|---|
ExtendedSequenceNumber |
getCheckpoint(java.lang.String shardId)
Get the current checkpoint stored for the specified shard.
|
void |
setCheckpoint(java.lang.String shardId,
ExtendedSequenceNumber checkpointValue,
java.lang.String concurrencyToken)
Record a checkpoint for a shard (e.g.
|
void setCheckpoint(java.lang.String shardId,
ExtendedSequenceNumber checkpointValue,
java.lang.String concurrencyToken)
throws KinesisClientLibException
shardId - Checkpoint is specified for this shard.checkpointValue - Value of the checkpoint (e.g. Kinesis sequence number and subsequence number)concurrencyToken - Used with conditional writes to prevent stale updates
(e.g. if there was a fail over to a different record processor, we don't want to
overwrite it's checkpoint)KinesisClientLibException - Thrown if we were unable to save the checkpointExtendedSequenceNumber getCheckpoint(java.lang.String shardId) throws KinesisClientLibException
shardId - Current checkpoint for this shard is fetchedKinesisClientLibException - Thrown if we are unable to fetch the checkpoint