Revisions.Option| Constructor and Description |
|---|
MemoryStoreRevisions() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(MemoryStore store)
Bind this instance to a
store. |
RecordId |
getHead()
Returns the record id of the head state.
|
boolean |
setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Not supported: throws
UnsupportedOperationException |
boolean |
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. |
public void bind(MemoryStore store) throws IOException
store.IOException@Nonnull public RecordId getHead()
RevisionsSegmentNodeState.public boolean setHead(@Nonnull RecordId expected, @Nonnull RecordId head, @Nonnull Revisions.Option... options)
Revisionshead state if the current head state matches
the expected value.
All record ids must be valid ids for SegmentNodeStates.
The locking behaviour of this method regarding implementation specific.
public boolean setHead(@Nonnull com.google.common.base.Function<RecordId,RecordId> newHead, @Nonnull Revisions.Option... options) throws InterruptedException
UnsupportedOperationExceptionsetHead in interface RevisionsnewHead - function mapping an record id to the record id to which
the current head id should be set.options - implementation specific optionstrue if the current head was successfully
updated, false otherwise.UnsupportedOperationException - alwaysInterruptedException - Blocking implementations may throw this exception whe
interrupted.Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.