/** * {@inheritDoc} */ @Override public synchronized void checkpoint() throws KinesisClientLibDependencyException, InvalidStateException, ThrottlingException, ShutdownException { if (LOG.isDebugEnabled()) { LOG.debug("Checkpointing " + shardInfo.getShardId() + ", " + " token " + shardInfo.getConcurrencyToken() + " at largest permitted value " + this.largestPermittedCheckpointValue); } advancePosition(this.largestPermittedCheckpointValue); }
if (LOG.isDebugEnabled()) { LOG.debug("Validated checkpoint sequence number " + sequenceNumber + " for " + shardInfo.getShardId() + ", token " + shardInfo.getConcurrencyToken()); LOG.debug("Checkpointing " + shardInfo.getShardId() + ", token " + shardInfo.getConcurrencyToken() + " at specific extended sequence number " + newCheckpoint);
if (LOG.isDebugEnabled()) { LOG.debug("Validated prepareCheckpoint sequence number " + sequenceNumber + " for " + shardInfo.getShardId() + ", token " + shardInfo.getConcurrencyToken()); + ", token " + shardInfo.getConcurrencyToken() + " at specific extended sequence number " + pendingCheckpoint);
try { if (LOG.isDebugEnabled()) { LOG.debug("Setting " + shardInfo.getShardId() + ", token " + shardInfo.getConcurrencyToken() + " checkpoint to " + checkpointToRecord); checkpoint.setCheckpoint(shardInfo.getShardId(), checkpointToRecord, shardInfo.getConcurrencyToken()); lastCheckpointValue = checkpointToRecord; } catch (ThrottlingException | ShutdownException | InvalidStateException
+ shardInfo.getConcurrencyToken() + ". Shutdown reason: " + reason); final ShutdownInput shutdownInput = new ShutdownInput() .withShutdownReason(reason)
checkpoint.prepareCheckpoint(shardInfo.getShardId(), newPrepareCheckpoint, shardInfo.getConcurrencyToken()); } catch (ThrottlingException | ShutdownException | InvalidStateException | KinesisClientLibDependencyException e) {