public class RemoteTransactionManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
READ_COMMITTED
The constant that should be used to request a read-only transaction
against the current commit point on the database at the time that the
request is processed by the server.
|
static long |
UNISOLATED
The constant that SHOULD used to request a read/write transaction.
|
| Constructor and Description |
|---|
RemoteTransactionManager(RemoteRepositoryManager remoteRepositoryManager)
Flyweight constructor for stateless transaction manager client.
|
| Modifier and Type | Method and Description |
|---|---|
IRemoteTx |
createTx(long timestamp)
CREATE-TX: Create a transaction on the server.
|
static boolean |
isReadWriteTx(long txId)
Return
true iff the transaction identifier would be
associated with a read/write transaction. |
Iterator<IRemoteTxState0> |
listTx()
LIST-TX: Return the set of active transactions. |
IRemoteTxState0 |
statusTx(long txId)
STATUS-TX: Return information about a transaction, including whether or
not it is active.
|
public static final long UNISOLATED
public static final long READ_COMMITTED
public RemoteTransactionManager(RemoteRepositoryManager remoteRepositoryManager)
remoteRepositoryManager - public static boolean isReadWriteTx(long txId)
true iff the transaction identifier would be
associated with a read/write transaction. This is a purely syntactic check
of the numerical value of the transaction identifier. Negative transaction
identifiers are read/write transactions.txId - The transaction identifier.true iff it is a read/write transaction.public IRemoteTx createTx(long timestamp)
UNISOLATEDREAD_COMMITTEDtimestamp - The timestamp used to indicate the type of transaction
requested.public Iterator<IRemoteTxState0> listTx()
LIST-TX: Return the set of active transactions.public IRemoteTxState0 statusTx(long txId) throws RemoteTransactionNotFoundException
txId - The transaction identifier.IRemoteTx for that transaction.RemoteTransactionNotFoundException - if the transaction was not found on the server.RemoteTransactionNotFoundExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.