Search in sources :

Example 1 with Commit

use of org.apache.jackrabbit.oak.segment.scheduler.Commit in project jackrabbit-oak by apache.

the class SegmentNodeStore method merge.

@Nonnull
@Override
public NodeState merge(@Nonnull NodeBuilder builder, @Nonnull CommitHook commitHook, @Nonnull CommitInfo info) throws CommitFailedException {
    checkArgument(builder instanceof SegmentNodeBuilder);
    checkArgument(((SegmentNodeBuilder) builder).isRootBuilder());
    return scheduler.schedule(new Commit(builder, commitHook, info));
}
Also used : Commit(org.apache.jackrabbit.oak.segment.scheduler.Commit) Nonnull(javax.annotation.Nonnull)

Aggregations

Nonnull (javax.annotation.Nonnull)1 Commit (org.apache.jackrabbit.oak.segment.scheduler.Commit)1