public interface TStore<T> extends ReadOnlyTStore<T>
ReadOnlyTStore.TStatus
Modifier and Type | Method and Description |
---|---|
long |
create()
Create a new transaction id
|
void |
delete(long tid)
Remove the transaction from the store.
|
void |
pop(long tid)
Remove the last pushed operation from the given transaction.
|
void |
push(long tid,
Repo<T> repo)
Update the given transaction with the next operation
|
void |
setProperty(long tid,
String prop,
Serializable val) |
void |
setStatus(long tid,
ReadOnlyTStore.TStatus status)
Update the state of a given transaction
|
Repo<T> |
top(long tid)
Get the current operation for the given transaction id.
|
getProperty, getStack, getStatus, list, reserve, reserve, unreserve, waitForStatusChange
long create()
Repo<T> top(long tid)
ReadOnlyTStore
top
in interface ReadOnlyTStore<T>
tid
- transaction id, previously reserved.void push(long tid, Repo<T> repo) throws StackOverflowException
tid
- the transaction idrepo
- the operationStackOverflowException
void pop(long tid)
void setStatus(long tid, ReadOnlyTStore.TStatus status)
tid
- transaction idstatus
- execution statusvoid setProperty(long tid, String prop, Serializable val)
void delete(long tid)
tid
- the transaction idCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.