|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReadOnlyTStore<T>
Read only access to a Transaction Store. A transaction consists of a number of operations. Instances of this class may check on the queue of outstanding transactions but may neither modify them nor create new ones.
| Nested Class Summary | |
|---|---|
static class |
ReadOnlyTStore.TStatus
Possible operational status codes. |
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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.List<Long> list()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||