@ConfigurationProperties(prefix="spring.jta.atomikos.properties") public class AtomikosProperties extends Object
asProperties()
Constructor and Description |
---|
AtomikosProperties() |
Modifier and Type | Method and Description |
---|---|
Properties |
asProperties()
Returns the properties as a
Properties object that can be used with
Atomikos. |
long |
getCheckpointInterval() |
long |
getDefaultJtaTimeout() |
String |
getLogBaseDir() |
String |
getLogBaseName() |
int |
getMaxActives() |
long |
getMaxTimeout() |
String |
getService() |
String |
getTransactionManagerUniqueName() |
boolean |
isEnableLogging() |
boolean |
isForceShutdownOnVmExit() |
boolean |
isSerialJtaTransactions() |
boolean |
isThreadedTwoPhaseCommit() |
void |
setCheckpointInterval(long checkpointInterval)
Specifies the interval between checkpoints.
|
void |
setDefaultJtaTimeout(long defaultJtaTimeout)
The default timeout for JTA transactions (optional, defaults to 10000
ms).
|
void |
setEnableLogging(boolean enableLogging)
Specifies if disk logging should be enabled or not.
|
void |
setForceShutdownOnVmExit(boolean forceShutdownOnVmExit)
Specifies whether VM shutdown should trigger forced shutdown of the transaction
core.
|
void |
setLogBaseDir(String logBaseDir)
Specifies the directory in which the log files should be stored.
|
void |
setLogBaseName(String logBaseName)
Specifies the transactions log file base name.
|
void |
setMaxActives(int maxActives)
Specifies the maximum number of active transactions.
|
void |
setMaxTimeout(long maxTimeout)
Specifies the maximum timeout (in milliseconds) that can be allowed for
transactions.
|
void |
setSerialJtaTransactions(boolean serialJtaTransactions)
Specifies if subtransactions should be joined when possible.
|
void |
setService(String service)
Specifies the transaction manager implementation that should be started.
|
void |
setThreadedTwoPhaseCommit(boolean threadedTwoPhaseCommit)
Specifies whether or not to use different (and concurrent) threads for two-phase
commit on the participating resources.
|
void |
setTransactionManagerUniqueName(String uniqueName)
Specifies the transaction manager's unique name.
|
public void setService(String service)
service
- the servicepublic String getService()
public void setMaxTimeout(long maxTimeout)
maxTimeout
- the max timeoutpublic long getMaxTimeout()
public void setDefaultJtaTimeout(long defaultJtaTimeout)
defaultJtaTimeout
- the default JTA timeoutpublic long getDefaultJtaTimeout()
public void setMaxActives(int maxActives)
IllegalStateException
with error message "Max number of active transactions reached" if you call
UserTransaction.begin()
while there are already n concurrent transactions
running, n being this value.maxActives
- the max activitiespublic int getMaxActives()
public void setEnableLogging(boolean enableLogging)
enableLogging
- if logging is enabledpublic boolean isEnableLogging()
public void setTransactionManagerUniqueName(String uniqueName)
uniqueName
- the unique namepublic String getTransactionManagerUniqueName()
public void setSerialJtaTransactions(boolean serialJtaTransactions)
XAResource.start(TM_JOIN)
will be made for
different but related subtransactions. This setting has no effect on resource
access within one and the same transaction. If you don't use subtransactions then
this setting can be ignored.serialJtaTransactions
- if serial JTA transaction are supportedpublic boolean isSerialJtaTransactions()
public void setForceShutdownOnVmExit(boolean forceShutdownOnVmExit)
forceShutdownOnVmExit
- if VM shutdown should be forcedpublic boolean isForceShutdownOnVmExit()
public void setLogBaseName(String logBaseName)
logBaseName
- the log base namepublic String getLogBaseName()
public void setLogBaseDir(String logBaseDir)
logBaseDir
- the log base dirpublic String getLogBaseDir()
public void setCheckpointInterval(long checkpointInterval)
checkpointInterval
- the checkpoint intervalpublic long getCheckpointInterval()
public void setThreadedTwoPhaseCommit(boolean threadedTwoPhaseCommit)
threadedTwoPhaseCommit
- if threaded two phase commits should be usedpublic boolean isThreadedTwoPhaseCommit()
public Properties asProperties()
Properties
object that can be used with
Atomikos.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.