CheckpointHandler

public interface CheckpointHandler
Known Indirect Subclasses

Wrapper object to read / write a checkpoint. An implementation is expected to throw IOException if reading or writing of the checkpoint fails.

Public Method Summary

abstract byte[]
readCheckpoint(String checkpointName)
Read current value of saved checkpoint.
abstract void
saveCheckpoint(String checkpointName, byte[] checkpoint)
Saves checkpoint value.

Public Methods

public abstract byte[] readCheckpoint (String checkpointName)

Read current value of saved checkpoint.

Parameters
checkpointName the name of the checkpoint to read
Returns
  • current value of checkpoint. null if checkpoint is empty or not available
Throws
IOException if checkpoint read fails

public abstract void saveCheckpoint (String checkpointName, byte[] checkpoint)

Saves checkpoint value.

Parameters
checkpointName the name of the checkpoint to save
checkpoint value to save
Throws
IOException if checkpoint save fails

Send feedback about...

Cloud Search
Cloud Search