Transaction configuration object. We have a separate object for this so that
other classes can enquire of (and use) this information.
- Mark Little (email@example.com)
- $Id: TxControl.java 2342 2006-03-30 13:06:17Z $
- JTS 2.2.
If a timeout is not associated with a transaction when it is created then
this value will be used. A value of 0 means that the transaction will
never time out.
Set the timeout to be associated with a newly created transaction if there is no
other timeout to be used.
Start the transaction system. This allows new transactions to be created
and for recovery to execute.
public static final synchronized void enable()
Stop the transaction system. New transactions will be prevented but
recovery will be allowed to continue.
public static final synchronized void disable()
Stop the transaction system. New transactions will be prevented and
recovery will cease.
WARNING: make sure you know what you are doing when you call this
public static final synchronized void disable (boolean disableRecovery)
flag which is true if transaction service is enabled and false if it is disabled
static volatile boolean enable = true;
flag which is true if enable and disable operations, respectively, start and stop the transaction status
manager and false if they do not perform a start and stop. this flag is true by default and can only be
set to false by setting property
to value "NO"