|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.coordinator.TxControl
public class TxControl
Transaction configuration object. We have a separate object for this so that other classes can enquire of (and use) this information.
Nested Class Summary | |
---|---|
static class |
TxControl.Shutdown
|
Constructor Summary | |
---|---|
TxControl()
|
Method Summary | |
---|---|
static void |
disable()
Stop the transaction system. |
static void |
disable(boolean disableRecovery)
Stop the transaction system. |
static void |
enable()
Start the transaction system. |
static ClassName |
getActionStoreType()
|
static boolean |
getAsyncPrepare()
|
static int |
getDefaultTimeout()
If a timeout is not associated with a transaction when it is created then this value will be used. |
static boolean |
getMaintainHeuristics()
|
static ObjectStore |
getRecoveryStore()
By default we should use the same store as the coordinator. |
static ObjectStore |
getStore()
|
static byte[] |
getXANodeName()
|
static boolean |
isBeforeCompletionWhenRollbackOnly()
|
static boolean |
isEnabled()
|
static boolean |
isReadonlyOptimisation()
|
static void |
setDefaultTimeout(int timeout)
Set the timeout to be associated with a newly created transaction if there is no other timeout to be used. |
static void |
setXANodeName(byte[] name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TxControl()
Method Detail |
---|
public static final int getDefaultTimeout()
public static final void setDefaultTimeout(int timeout)
timeout
- public static final void enable()
public static final void disable()
public static final void disable(boolean disableRecovery)
public static final boolean isEnabled()
public static final ClassName getActionStoreType()
public static final ObjectStore getRecoveryStore()
ObjectStore
implementation which the
recovery manager uses.ObjectStore
public static final ObjectStore getStore()
ObjectStore
implementation which the
transaction coordinator will use.ObjectStore
public static final boolean getAsyncPrepare()
public static final boolean getMaintainHeuristics()
public static boolean isReadonlyOptimisation()
public static final byte[] getXANodeName()
public static void setXANodeName(byte[] name)
public static boolean isBeforeCompletionWhenRollbackOnly()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |