public class JTSEnvironmentBean extends Object implements JTSEnvironmentBeanMBean
Constructor and Description |
---|
JTSEnvironmentBean() |
Modifier and Type | Method and Description |
---|---|
int |
getCommitedTransactionRetryLimit()
Returns the number of attempts to make to notify resources of a transaction commit during recovery.
|
String |
getContextPropMode()
Returns the name of the context propagation mode.
|
String |
getInterposition()
Returns the Xid format interposition strategy.
|
String |
getRecoveryManagerAddress()
Returns the hostname on which the recovery manager will bind.
|
int |
getRecoveryManagerPort()
Returns the port number on which the recovery manager will listen.
|
boolean |
isAlwaysPropagateContext()
Returns if a transaction context should always be propagated on remote calls.
|
boolean |
isCheckedTransactions()
Returns if checked transactions should be used.
|
boolean |
isIssueRecoveryRollback()
Returns if resources will have rollback invoked explicitly on them by recovery.
|
boolean |
isNeedTranContext()
Returns if transaction context interceptors will require a context to be present.
|
boolean |
isPropagateTerminator()
Returns if a reference to the terminator should be included in the propagation context.
|
boolean |
isSupportInterposedSynchronization()
Returns if Synchronizations can be interposed i.e.
|
boolean |
isSupportRollbackSync()
Returns if Synchronizations should be fired on transaction rollback.
|
boolean |
isSupportSubtransactions()
Returns if subtransactions should be used in the JTS.
|
boolean |
isTimeoutPropagation()
Returns if the timeout value sent should be the time remaining or not.
|
boolean |
isTransactionManager()
Returns if an external transaction manager process should be used.
|
void |
setAlwaysPropagateContext(boolean alwaysPropagateContext)
Sets if a transaction context should always be propagated on remote calls.
|
void |
setCheckedTransactions(boolean checkedTransactions)
Sets if checked transactions should be used.
|
void |
setCommitedTransactionRetryLimit(int commitedTransactionRetryLimit)
Sets the number of attempts to make to notify resource of a transaction commit during recovery.
|
void |
setContextPropMode(String contextPropMode)
Sets the name of the context propagation mode.
|
void |
setInterposition(String interposition)
Sets the Xid format interposition strategy.
|
void |
setIssueRecoveryRollback(boolean issueRecoveryRollback)
Sets if resources will have rollback invoked explicitly on them by recovery.
|
void |
setNeedTranContext(boolean needTranContext)
Sets if transaction context interceptors will require a context to be present.
|
void |
setPropagateTerminator(boolean propagateTerminator)
Sets if a reference to the terminator should be included in the propagation context.
|
void |
setRecoveryManagerAddress(String recoveryManagerAddress)
Sets the hostname on which the recovery manager will bind.
|
void |
setRecoveryManagerInetAddress(InetAddress inetAddress)
Sets the InetAddress on which the recovery manager should bind.
|
void |
setRecoveryManagerPort(int recoveryManagerPort)
Sets the port number on which the recovery manager will listen.
|
void |
setSupportInterposedSynchronization(boolean supportInterposedSynchronization)
Sets if Synchronizations can be interposed.
|
void |
setSupportRollbackSync(boolean supportRollbackSync)
Sets if Synchronizations will be fired on transaction rollback.
|
void |
setSupportSubtransactions(boolean supportSubtransactions)
Sets if subtransactions are allowed in the JTS.
|
void |
setTimeoutPropagation(boolean timeoutPropagation)
Sets if the timeout value propagated should be time remaining or not.
|
void |
setTransactionManager(boolean transactionManager)
Sets if an external transaction manager process should be used.
|
public boolean isTransactionManager()
isTransactionManager
in interface JTSEnvironmentBeanMBean
public void setTransactionManager(boolean transactionManager)
transactionManager
- true to enable use of a separate transaction manager, false to disable.public boolean isNeedTranContext()
isNeedTranContext
in interface JTSEnvironmentBeanMBean
public void setNeedTranContext(boolean needTranContext)
needTranContext
- true to require a transaction context, false if it is optional.public boolean isAlwaysPropagateContext()
isAlwaysPropagateContext
in interface JTSEnvironmentBeanMBean
public void setAlwaysPropagateContext(boolean alwaysPropagateContext)
alwaysPropagateContext
- true to always propagate, false to propagate selectively.public String getInterposition()
getInterposition
in interface JTSEnvironmentBeanMBean
public void setInterposition(String interposition)
interposition
- the name of the interposition implementation.public boolean isCheckedTransactions()
isCheckedTransactions
in interface JTSEnvironmentBeanMBean
public void setCheckedTransactions(boolean checkedTransactions)
checkedTransactions
- true to enable checked transactions, false to disable.public boolean isSupportSubtransactions()
isSupportSubtransactions
in interface JTSEnvironmentBeanMBean
public void setSupportSubtransactions(boolean supportSubtransactions)
supportSubtransactions
- true to enable subtransactions, false to disable.public boolean isSupportRollbackSync()
isSupportRollbackSync
in interface JTSEnvironmentBeanMBean
public void setSupportRollbackSync(boolean supportRollbackSync)
supportRollbackSync
- true to enable Synchronizations on rollback transactions, false to disable.public boolean isSupportInterposedSynchronization()
isSupportInterposedSynchronization
in interface JTSEnvironmentBeanMBean
public void setSupportInterposedSynchronization(boolean supportInterposedSynchronization)
supportInterposedSynchronization
- true to enable interposition of synchronizations, false to disable.public boolean isPropagateTerminator()
isPropagateTerminator
in interface JTSEnvironmentBeanMBean
public void setPropagateTerminator(boolean propagateTerminator)
propagateTerminator
- true to enable propagation of the terminator, false to disable.public String getContextPropMode()
getContextPropMode
in interface JTSEnvironmentBeanMBean
public void setContextPropMode(String contextPropMode)
contextPropMode
- the name of the context propagation mode.public int getRecoveryManagerPort()
getRecoveryManagerPort
in interface JTSEnvironmentBeanMBean
public void setRecoveryManagerPort(int recoveryManagerPort)
recoveryManagerPort
- the port number to use for the recovery manager.public String getRecoveryManagerAddress()
getRecoveryManagerAddress
in interface JTSEnvironmentBeanMBean
public void setRecoveryManagerAddress(String recoveryManagerAddress)
recoveryManagerAddress
- the hostname to use for the recovery manager.public void setRecoveryManagerInetAddress(InetAddress inetAddress)
inetAddress
- public boolean isTimeoutPropagation()
isTimeoutPropagation
in interface JTSEnvironmentBeanMBean
public void setTimeoutPropagation(boolean timeoutPropagation)
timeoutPropagation
- true for OTS 1.2 behaviour, false for backwards compatible.public boolean isIssueRecoveryRollback()
isIssueRecoveryRollback
in interface JTSEnvironmentBeanMBean
public void setIssueRecoveryRollback(boolean issueRecoveryRollback)
issueRecoveryRollback
- true to enable explicit rollback, false to disable.public int getCommitedTransactionRetryLimit()
getCommitedTransactionRetryLimit
in interface JTSEnvironmentBeanMBean
public void setCommitedTransactionRetryLimit(int commitedTransactionRetryLimit)
commitedTransactionRetryLimit
- the number of communication attempts to make.Copyright © 2013. All rights reserved.