| Package | Description |
|---|---|
| org.apache.jackrabbit.oak.segment | |
| org.apache.jackrabbit.oak.segment.file | |
| org.apache.jackrabbit.oak.segment.memory |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Revisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Atomically set the record id of the current head state to the value
returned from the
newHead function when called with the record
id of the current head. |
boolean |
Revisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options)
Atomically set the record id of the current head state to the
given
head state if the current head state matches
the expected value. |
| Modifier and Type | Field and Description |
|---|---|
static Revisions.Option |
TarRevisions.EXPEDITE_OPTION
Option to cause set head calls to be expedited.
|
static Revisions.Option |
TarRevisions.INFINITY
Timeout option approximating no time out (
Long.MAX_VALUE days). |
| Modifier and Type | Method and Description |
|---|---|
static Revisions.Option |
TarRevisions.timeout(long time,
TimeUnit unit)
Factory method for creating a timeout option.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ReadOnlyRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options) |
boolean |
TarRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
This implementation blocks if a concurrent call is already in progress.
|
boolean |
ReadOnlyRevisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options) |
boolean |
TarRevisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options)
This implementation blocks if a concurrent call to
Revisions.setHead(Function, Option...) is already in
progress. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MemoryStoreRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Not supported: throws
UnsupportedOperationException |
boolean |
MemoryStoreRevisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options) |
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.