public interface ReadOnlyTStore<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ReadOnlyTStore.TStatus
Possible operational status codes.
|
| Modifier and Type | Method and Description |
|---|---|
Serializable |
getProperty(long tid,
String prop)
Retrieve a transaction-specific property.
|
ReadOnlyTStore.TStatus |
getStatus(long tid)
Get the state of a given transaction.
|
List<Long> |
list()
list all transaction ids in store.
|
long |
reserve()
Reserve a transaction that is IN_PROGRESS or FAILED_IN_PROGRESS.
|
void |
reserve(long tid)
Reserve the specific tid.
|
ReadOnlyRepo<T> |
top(long tid)
Get the current operation for the given transaction id.
|
void |
unreserve(long tid,
long deferTime)
Return the given transaction to the store.
|
ReadOnlyTStore.TStatus |
waitForStatusChange(long tid,
EnumSet<ReadOnlyTStore.TStatus> expected)
Wait for the satus of a transaction to change
|
long reserve()
void reserve(long tid)
void unreserve(long tid,
long deferTime)
tid - transaction id, previously reserved.deferTime - time in millis to keep this transaction out of the pool used in the reserve method. must be non-negative.ReadOnlyRepo<T> top(long tid)
tid - transaction id, previously reserved.ReadOnlyTStore.TStatus getStatus(long tid)
tid - transaction id, previously reserved.ReadOnlyTStore.TStatus waitForStatusChange(long tid, EnumSet<ReadOnlyTStore.TStatus> expected)
tid - transaction id, need not have been reserved.expected - a set of possible statuses we are interested in being notified about. may not be null.Serializable getProperty(long tid, String prop)
tid - transaction id, previously reserved.prop - name of property to retrieve.Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.