|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionCoordinator
Defines an interface for managing transactions.
| Field Summary | |
|---|---|
static String |
TXN_DISABLE_PREPAREANDCOMMIT_OPT_PROPERTY
A property used to control whether we allow the prepareAndCommit optimization, where the final participant has prepareAndCommit called (one call) rather than prepare(), and at some later point commit(). |
static String |
TXN_TIMEOUT_PROPERTY
The property used to specify the timeout value for transactions. |
static String |
TXN_UNBOUNDED_TIMEOUT_PROPERTY
The property used to specify the value for unbounded timeout. |
| Method Summary | |
|---|---|
TransactionHandle |
createTransaction(long timeout)
Creates a new transaction, and returns a handle for managing it. |
long |
getDefaultTimeout()
Returns the default transaction timeout to use for bounded transactions. |
| Field Detail |
|---|
static final String TXN_TIMEOUT_PROPERTY
static final String TXN_UNBOUNDED_TIMEOUT_PROPERTY
static final String TXN_DISABLE_PREPAREANDCOMMIT_OPT_PROPERTY
The flag defaults to false.
| Method Detail |
|---|
TransactionHandle createTransaction(long timeout)
ScheduledTask.UNBOUNDED is given, a
transaction will be created with the timeout value specified
by the property "com.sun.sgs.txn.timeout.unbounded".
timeout - the timeout, in milliseconds, to be used for this
transaction
long getDefaultTimeout()
|
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 | |||||||||