tyrex.tm.impl
public final class DomainConfig extends Object
Version: $Revision: 1.9 $ $Date: 2002/04/17 00:53:22 $
Field Summary | |
---|---|
static int | DEFAULT_TIMEOUT
The default timeout for all transactions. |
static int | DEFAULT_WAIT_NEW
The default timeout waiting to begin a new transaction when maximum
limit exceeded. |
static int | MAXIMUM_TIMEOUT
The maximum possible timeout for a transaction. |
static int | NO_LIMIT
Value indicating no limit on the maximum number of concurrent
top-level transactions allowed. |
Method Summary | |
---|---|
TransactionDomain | getDomain()
Returns a transaction domain based on this configuration.
|
int | getMaximum()
Returns the maximum number of concurrent top-level transactions
supported. |
String | getName()
Return the name of the transaction domain.
|
Resources | getResources()
Returns the resources list associated with this transaction domain.
|
int | getTimeout()
Returns the default transaction timeout in seconds. |
int | getWaitNew()
Returns the time to wait for a new transaction when limit exceeded,
specified in seconds.
|
void | setMaximum(int maximum)
Sets the maximum number of concurrent top-level transactions
supported. |
void | setName(String name)
Sets the name of the transaction domain.
|
void | setResources(Resources resources)
Sets the resources list associated with this transaction domain.
|
void | setTimeout(int timeout)
Returns the default transaction timeout in seconds. |
void | setWaitNew(int timeout)
Sets the time to wait for a new transaction when limit exceeded,
specified in seconds.
|
Returns: A transaction domain based on this configuration
Throws: DomainConfigurationException The transaction domain configuration is invalid
Returns: The maximum number of concurrent top-level transactions
Returns: Name of transaction domain
Returns: The resources list
The actual value is kept in the range one to MAXIMUM_TIMEOUT. The value zero is understood to be the default value, or DEFAULT_TIMEOUT.
Returns: The default transaction timeout in seconds
When the maximum number of concurrent transactions have exceeded, any attempt to create a new transaction will block until a new transaction can be created or this timeout has been reached.
Returns: The time to wait to begin a new transaction when limit exceeded, specified in seconds
Parameters: maximum The maximum number of concurrent top-level transactions
Parameters: name Name of transaction domain
Parameters: resources The resources list
The actual value is kept in the range one to MAXIMUM_TIMEOUT. The value zero is understood to be the default value, or DEFAULT_TIMEOUT.
Parameters: timeout The default transaction timeout in seconds
When the maximum number of concurrent transactions have exceeded, any attempt to create a new transaction will block until a new transaction can be created or this timeout has been reached.
Parameters: timeout The time to wait to begin a new transaction when limit exceeded, specified in seconds