|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.tm.impl.DomainConfig
Domain configuration object read from the domain configuration file and used to construct a new transaction domain.
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. |
Constructor Summary | |
DomainConfig()
|
Method Summary | |
TransactionDomain |
getDomain()
Returns a transaction domain based on this configuration. |
int |
getMaximum()
Returns the maximum number of concurrent top-level transactions supported. |
java.lang.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(java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NO_LIMIT
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_WAIT_NEW
public static final int MAXIMUM_TIMEOUT
Constructor Detail |
public DomainConfig()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Name of transaction domainpublic int getMaximum()
NO_LIMIT
indicates unlimited number
of transactions.
public void setMaximum(int maximum)
NO_LIMIT
indicates unlimited number
of transactions.
maximum
- The maximum number of concurrent top-level transactionspublic int getTimeout()
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
.
public void setTimeout(int timeout)
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
.
timeout
- The default transaction timeout in secondspublic int getWaitNew()
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.
public void setWaitNew(int timeout)
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.
timeout
- The time to wait to begin a new transaction when limit
exceeded, specified in secondspublic TransactionDomain getDomain() throws DomainConfigurationException
DomainConfigurationException
- The transaction domain
configuration is invalidpublic Resources getResources()
public void setResources(Resources resources)
resources
- The resources list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |