本文整理汇总了Java中com.amazonaws.services.kinesis.clientlibrary.types.ShutdownReason.TERMINATE属性的典型用法代码示例。如果您正苦于以下问题:Java ShutdownReason.TERMINATE属性的具体用法?Java ShutdownReason.TERMINATE怎么用?Java ShutdownReason.TERMINATE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.amazonaws.services.kinesis.clientlibrary.types.ShutdownReason
的用法示例。
在下文中一共展示了ShutdownReason.TERMINATE属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: shutdown
/**
* {@inheritDoc}
*/
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer,
ShutdownReason reason) {
LOG.info("Shutting down record processor for shard: " + kinesisShardId);
// Important to checkpoint after reaching end of shard, so we can start
// processing data from child shards.
if (reason == ShutdownReason.TERMINATE) {
try {
checkpoint(checkpointer);
} catch (Exception e) {
e.printStackTrace();
}
}
}
示例2: shutdown
@Override
public void shutdown(IRecordProcessorCheckpointer iRecordProcessorCheckpointer, ShutdownReason shutdownReason) {
if (producer != null) {
producer.close();
}
logger.info("Shutting down record processor for shard: " + shardId);
// Important to checkpoint after reaching end of shard, so we can start processing data from child shards.
if (shutdownReason == ShutdownReason.TERMINATE) {
checkpoint(iRecordProcessorCheckpointer);
}
}
示例3: shutdown
/**
* {@inheritDoc}
*/
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
// Important to checkpoint after reaching end of shard,
// so we can start processing data from child shards.
if (reason == ShutdownReason.TERMINATE) {
performCheckpoint(checkpointer);
}
}
示例4: shutdown
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
if(reason == ShutdownReason.TERMINATE) {
try {
checkpointer.checkpoint();
} catch (Exception e) {
e.printStackTrace();
}
}
}
开发者ID:gnethercutt,项目名称:dynamodb-streams-kafka,代码行数:10,代码来源:KafkaForwardingStreamsRecordProcessor.java
示例5: shutdown
/**
* {@inheritDoc}
*/
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
logger.info("Shutting down record processor for shard: " + kinesisShardId);
// Important to checkpoint after reaching end of shard, so we can start processing data from child shards.
if (reason == ShutdownReason.TERMINATE) {
checkpoint(checkpointer);
}
}
示例6: shutdown
/**
* {@inheritDoc}
*/
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
LOG.info("Shutting down record processor for shard: " + kinesisShardId);
// Important to checkpoint after reaching end of shard, so we can start processing data from child shards.
if (reason == ShutdownReason.TERMINATE) {
checkpoint(checkpointer);
}
}
示例7: shutdown
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
LOG.info("Shutting down record processor for shard: " + kinesisShardId);
// Important to checkpoint after reaching end of shard, so we can start
// processing data from child shards.
if (reason == ShutdownReason.TERMINATE) {
checkpoint(checkpointer);
}
}
示例8: shutdown
/**
* {@inheritDoc}
*/
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
LOGGER.info("Shutting down record processor for shard: " + kinesisShardId);
/** Important to checkpoint after reaching end of shard, so we can start processing data from child shards. **/
if (reason == ShutdownReason.TERMINATE) {
checkpoint(checkpointer);
}
}
示例9: shutdown
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer,
ShutdownReason reason) {
if(reason == ShutdownReason.TERMINATE) {
try {
checkpointer.checkpoint();
} catch (Exception e) {
e.printStackTrace();
}
}
}
示例10: shutdown
/**
* {@inheritDoc}
*/
@Override
public void shutdown(IRecordProcessorCheckpointer checkpointer, ShutdownReason reason) {
LOG.info("Shutting down record processor for shard: " + kinesisShardId);
// Important to checkpoint after reaching end of shard, so we can start processing data from child shards.
if (reason == ShutdownReason.TERMINATE) {
checkpoint(checkpointer);
}
}