|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.TransactionContext
com.sun.sgs.impl.service.session.ClientSessionServiceImpl.Context
final class ClientSessionServiceImpl.Context
| Field Summary |
|---|
| Fields inherited from class com.sun.sgs.impl.util.TransactionContext |
|---|
isCommitted, isPrepared, txn |
| Method Summary | |
|---|---|
void |
abort(boolean retryable)
Removes the context from the context queue containing pending actions, and checks for flushing committed contexts. |
(package private) void |
addCommitAction(BigInteger sessionRefId,
ClientSessionServiceImpl.Action action,
boolean first)
Adds an action for the specified session to be performed when the associated transaction commits. |
void |
commit()
Marks this transaction as committed, and checks for flushing committed contexts. |
boolean |
prepare()
Marks this transaction as prepared, and if there are pending changes, adds this context to the context queue and returns false. |
| Methods inherited from class com.sun.sgs.impl.util.TransactionContext |
|---|
getTransaction, isPrepared, prepareAndCommit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
void addCommitAction(BigInteger sessionRefId,
ClientSessionServiceImpl.Action action,
boolean first)
first is
true, then the action is added as the first commit
action for the specified session.
public boolean prepare()
false. Otherwise, if there are no pending
changes returns true indicating readonly status.
prepare in class TransactionContexttrue if this context's state is read-only,
false otherwisepublic void abort(boolean retryable)
abort in class TransactionContextretryable - if true, the transaction's abort cause
is a retryable exceptionpublic void commit()
commit in class TransactionContext
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||