public interface Scheduler
Schedulerinstance transforms changes to the content tree into a queue of
An implementation is free to employ any scheduling strategy as long
as it guarantees all changes are applied atomically without changing
the semantics of the changes recorded in the
the semantics of the
CommitHook contained in the actual
passed to the
|Modifier and Type||Interface and Description|
Scheduling options for parametrizing individual commits.
|Modifier and Type||Method and Description|
Creates a new checkpoint of the latest root of the tree.
Returns the latest state of the tree.
Releases the provided checkpoint.
NodeState schedule(@NotNull @NotNull Commit commit, Scheduler.SchedulerOption... schedulingOptions) throws CommitFailedException
commit. This method blocks until the changes in this
commithave been processed and persisted. That is, until a call to
getHeadNodeState()would return a node state reflecting those changes.
commit- the commit
schedulingOptions- implementation specific scheduling options
CommitFailedException- if the commit failed and none of the changes have been applied.
properties passed to this methods are associated with the
checkpoint and can be retrieved through the
method. Its semantics is entirely application specific.
lifetime- time (in milliseconds, > 0) that the checkpoint should remain available
properties- properties to associate with the checkpoint
boolean removeCheckpoint(String name)
name- string reference of a checkpoint
trueif the checkpoint was successfully removed, or if it doesn't exist
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.