public final class DefaultCheckpointers extends Object
Checkpointer implementations.| Modifier and Type | Method and Description |
|---|---|
static Checkpointer |
file(Path path)
Checkpointer implementation that persists state to a given file.
|
public static Checkpointer file(Path path) throws IOException
The checkpointer will attempt to obtain an exclusive lock on the file so there can only be a single checkpointer instance for a given file at any point in time.
path - A file path.IOException - if an error occurs creating the checkpointer.Copyright © 2023. All rights reserved.