Revisions.Option
Constructor and Description |
---|
HttpStoreRevisions(HttpStore store) |
Modifier and Type | Method and Description |
---|---|
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)
Not supported: throws
UnsupportedOperationException |
@Nonnull public RecordId getHead()
Revisions
SegmentNodeState
.public boolean setHead(@Nonnull RecordId expected, @Nonnull RecordId head, @Nonnull Revisions.Option... options)
UnsupportedOperationException
setHead
in interface Revisions
expected
- the expected head for the update to take placehead
- the new head to update tooptions
- implementation specific optionstrue
if the current head was successfully
updated, false
otherwise.UnsupportedOperationException
- alwayspublic boolean setHead(@Nonnull com.google.common.base.Function<RecordId,RecordId> newHead, @Nonnull Revisions.Option... options) throws InterruptedException
UnsupportedOperationException
setHead
in interface Revisions
newHead
- 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-2016 The Apache Software Foundation. All Rights Reserved.