public class DoesNothingPreparedCheckpointer extends Object implements IPreparedCheckpointer
| Constructor and Description |
|---|
DoesNothingPreparedCheckpointer(ExtendedSequenceNumber sequenceNumber)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint()
This method will record a pending checkpoint.
|
ExtendedSequenceNumber |
getPendingCheckpoint() |
public DoesNothingPreparedCheckpointer(ExtendedSequenceNumber sequenceNumber)
sequenceNumber - the sequence number valuepublic ExtendedSequenceNumber getPendingCheckpoint()
getPendingCheckpoint in interface IPreparedCheckpointerpublic void checkpoint()
throws KinesisClientLibDependencyException,
InvalidStateException,
ThrottlingException,
ShutdownException,
IllegalArgumentException
checkpoint in interface IPreparedCheckpointerKinesisClientLibDependencyException - Encountered an issue when storing the checkpoint. The application can
backoff and retry.InvalidStateException - Can't store checkpoint.
Unable to store the checkpoint in the DynamoDB table (e.g. table doesn't exist).ThrottlingException - Can't store checkpoint. Can be caused by checkpointing too frequently.
Consider increasing the throughput/capacity of the checkpoint store or reducing checkpoint frequency.ShutdownException - The record processor instance has been shutdown. Another instance may have
started processing some of these records already.
The application should abort processing via this RecordProcessor instance.IllegalArgumentException - The sequence number being checkpointed is invalid because it is out of range,
i.e. it is smaller than the last check point value (prepared or committed), or larger than the greatest
sequence number seen by the associated record processor.Copyright © 2017. All rights reserved.