@ThreadSafe public abstract class CheckpointedIdHashSet extends DelegatingSet<Long> implements Checkpointed
Constructor and Description |
---|
CheckpointedIdHashSet()
Constructs a new checkpointed id hash set.
|
Modifier and Type | Method and Description |
---|---|
void |
restoreFromCheckpoint(CheckpointInputStream input)
Restores state from a checkpoint.
|
void |
writeToCheckpoint(OutputStream output)
Writes a checkpoint of all state to the given output stream.
|
add, addAll, clear, contains, containsAll, equals, forEach, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCheckpointName
public CheckpointedIdHashSet()
public void writeToCheckpoint(OutputStream output) throws IOException
Checkpointed
InterruptedException
if they get
interrupted while running.writeToCheckpoint
in interface Checkpointed
output
- the output stream to write toIOException
public void restoreFromCheckpoint(CheckpointInputStream input) throws IOException
Checkpointed
restoreFromCheckpoint
in interface Checkpointed
input
- an input stream with checkpoint dataIOException
Copyright © 2023. All Rights Reserved.