public final class CheckpointManager extends Object
| Constructor and Description |
|---|
CheckpointManager(LogSaverTableUtil tableUtil,
co.cask.tephra.TransactionExecutorFactory txExecutorFactory,
String topic,
int prefix) |
| Modifier and Type | Method and Description |
|---|---|
Checkpoint |
getCheckpoint(int partition) |
Map<Integer,Checkpoint> |
getCheckpoint(Set<Integer> partitions) |
void |
saveCheckpoint(Map<Integer,Checkpoint> checkpoints) |
public CheckpointManager(LogSaverTableUtil tableUtil, co.cask.tephra.TransactionExecutorFactory txExecutorFactory, String topic, int prefix)
public void saveCheckpoint(Map<Integer,Checkpoint> checkpoints) throws Exception
Exceptionpublic Map<Integer,Checkpoint> getCheckpoint(Set<Integer> partitions) throws Exception
Exceptionpublic Checkpoint getCheckpoint(int partition) throws Exception
ExceptionCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.