public interface IRemoteTx extends IRemoteTxState0
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts a read/write transaction (discarding its write set) -or-
deactivates a read-only transaction.
|
void |
commit()
Prepares and commits a read/write transaction -or- deactivates a
read-only transaction.
|
boolean |
isActive()
Return
true iff the client believes that transaction is
active (it exists and has not been aborted nor committed). |
boolean |
prepare()
Return true if the write set of the transaction passes validation at
the time that the server processes this request.
|
getReadsOnCommitTime, getTxId, isReadOnly
boolean isActive()
boolean prepare() throws RemoteTransactionNotFoundException
commit()
will fail for that transaction. If it
passes validation, then commit()
is not known to fail at this
time.
Note: transactions always validate during commit()
. Invoking
this method explicitly is discouraged since it just adds overhead
unless you are actually going to gain something from the information.
RemoteTransactionValidationException
- if the transaction was not found on the server.RemoteTransactionNotFoundException
void abort() throws RemoteTransactionNotFoundException
Note: You MUST always either abort()
or commit()
a
read-only transaction in order to release the resources on the server!
RemoteTransactionValidationException
- if the transaction was not found on the server.RemoteTransactionNotFoundException
void commit() throws RemoteTransactionNotFoundException
Note: You MUST always either abort()
or commit()
a
read-only transaction in order to release the resources on the server!
RemoteTransactionValidationException
- if the transaction was not found on the server.RemoteTransactionValidationException
- if the transaction exists but could not be validated.RemoteTransactionNotFoundException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.