org.apache.openejb.config.typed
Class TransactionManagerBuilder
java.lang.Object
org.apache.openejb.config.sys.AbstractService
org.apache.openejb.config.sys.TransactionManager
org.apache.openejb.config.typed.TransactionManagerBuilder
- All Implemented Interfaces:
- Service
public class TransactionManagerBuilder
- extends TransactionManager
| Methods inherited from class org.apache.openejb.config.sys.AbstractService |
equals, getClassName, getClasspath, getConstructor, getFactoryName, getId, getJar, getPropertiesProvider, getProvider, getType, hashCode, setClassName, setClasspath, setConstructor, setFactoryName, setId, setJar, setPropertiesProvider, setProvider, setType |
TransactionManagerBuilder
public TransactionManagerBuilder()
id
public TransactionManagerBuilder id(String id)
withDefaultTransactionTimeout
public TransactionManagerBuilder withDefaultTransactionTimeout(Duration defaultTransactionTimeout)
setDefaultTransactionTimeout
public void setDefaultTransactionTimeout(Duration defaultTransactionTimeout)
getDefaultTransactionTimeout
public Duration getDefaultTransactionTimeout()
withDefaultTransactionTimeout
public TransactionManagerBuilder withDefaultTransactionTimeout(long time,
TimeUnit unit)
setDefaultTransactionTimeout
public void setDefaultTransactionTimeout(long time,
TimeUnit unit)
withTxRecovery
public TransactionManagerBuilder withTxRecovery(boolean txRecovery)
setTxRecovery
public void setTxRecovery(boolean txRecovery)
getTxRecovery
public boolean getTxRecovery()
withBufferSizeKb
public TransactionManagerBuilder withBufferSizeKb(int bufferSizeKb)
setBufferSizeKb
public void setBufferSizeKb(int bufferSizeKb)
getBufferSizeKb
public int getBufferSizeKb()
withChecksumEnabled
public TransactionManagerBuilder withChecksumEnabled(boolean checksumEnabled)
setChecksumEnabled
public void setChecksumEnabled(boolean checksumEnabled)
getChecksumEnabled
public boolean getChecksumEnabled()
withAdler32Checksum
public TransactionManagerBuilder withAdler32Checksum(boolean adler32Checksum)
setAdler32Checksum
public void setAdler32Checksum(boolean adler32Checksum)
getAdler32Checksum
public boolean getAdler32Checksum()
withFlushSleepTime
public TransactionManagerBuilder withFlushSleepTime(Duration flushSleepTime)
setFlushSleepTime
public void setFlushSleepTime(Duration flushSleepTime)
getFlushSleepTime
public Duration getFlushSleepTime()
withFlushSleepTime
public TransactionManagerBuilder withFlushSleepTime(long time,
TimeUnit unit)
setFlushSleepTime
public void setFlushSleepTime(long time,
TimeUnit unit)
withLogFileDir
public TransactionManagerBuilder withLogFileDir(String logFileDir)
setLogFileDir
public void setLogFileDir(String logFileDir)
getLogFileDir
public String getLogFileDir()
withLogFileExt
public TransactionManagerBuilder withLogFileExt(String logFileExt)
setLogFileExt
public void setLogFileExt(String logFileExt)
getLogFileExt
public String getLogFileExt()
withLogFileName
public TransactionManagerBuilder withLogFileName(String logFileName)
setLogFileName
public void setLogFileName(String logFileName)
getLogFileName
public String getLogFileName()
withMaxBlocksPerFile
public TransactionManagerBuilder withMaxBlocksPerFile(int maxBlocksPerFile)
setMaxBlocksPerFile
public void setMaxBlocksPerFile(int maxBlocksPerFile)
getMaxBlocksPerFile
public int getMaxBlocksPerFile()
withMaxBuffers
public TransactionManagerBuilder withMaxBuffers(int maxBuffers)
setMaxBuffers
public void setMaxBuffers(int maxBuffers)
getMaxBuffers
public int getMaxBuffers()
withMaxLogFiles
public TransactionManagerBuilder withMaxLogFiles(int maxLogFiles)
setMaxLogFiles
public void setMaxLogFiles(int maxLogFiles)
getMaxLogFiles
public int getMaxLogFiles()
withMinBuffers
public TransactionManagerBuilder withMinBuffers(int minBuffers)
setMinBuffers
public void setMinBuffers(int minBuffers)
getMinBuffers
public int getMinBuffers()
withThreadsWaitingForceThreshold
public TransactionManagerBuilder withThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
setThreadsWaitingForceThreshold
public void setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
getThreadsWaitingForceThreshold
public int getThreadsWaitingForceThreshold()
getProperties
public Properties getProperties()
- Description copied from class:
AbstractService
- Gets the value of the properties property.
This accessor method returns a reference to the live Properties Object,
not a snapshot. Therefore any modification you make to the
returned Properties will be present inside the JAXB object.
This is why there is not a
set method for the properties property.
For example, to add a new value, do as follows:
getProperties().setProperty(key, value);
- Specified by:
getProperties in interface Service- Overrides:
getProperties in class AbstractService
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.