|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrunx.tyrex.tm.impl.DomainConfig
| 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 | |
boolean |
getClusterable()
Sets the resources list associated with this transaction domain. |
TransactionDomain |
getDomain()
Returns a transaction domain based on this configuration. |
java.lang.String |
getJournalFactory()
Returns the class name of the transaction journal factory. |
int |
getMaximum()
Returns the maximum number of concurrent top-level transactions supported. |
java.lang.String |
getName()
Return the name of the 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 |
setClusterable(boolean clusterable)
|
void |
setDomain(TransactionDomain d)
|
void |
setJournalFactory(java.lang.String factory)
Sets the class name of the transaction journal factory. |
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 |
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 java.lang.String getJournalFactory()
public void setJournalFactory(java.lang.String factory)
JournalFactory, and can be used to open
a new transaction journal for use by a transaction domain.factory - The class name of the transaction journal factory
public TransactionDomain getDomain()
throws DomainConfigurationException
DomainConfigurationException - The transaction domain
configuration is invalidpublic void setDomain(TransactionDomain d)
public boolean getClusterable()
resources - The resources listpublic void setClusterable(boolean clusterable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||