org.apache.openejb.config.typed
Class TransactionManagerBuilder

java.lang.Object
  extended by org.apache.openejb.config.sys.AbstractService
      extended by org.apache.openejb.config.sys.TransactionManager
          extended by org.apache.openejb.config.typed.TransactionManagerBuilder
All Implemented Interfaces:
Service

public class TransactionManagerBuilder
extends TransactionManager


Field Summary
 
Fields inherited from class org.apache.openejb.config.sys.AbstractService
className, constructor, factoryName, id, jar, properties, provider, type
 
Constructor Summary
TransactionManagerBuilder()
           
 
Method Summary
 boolean getAdler32Checksum()
           
 int getBufferSizeKb()
           
 boolean getChecksumEnabled()
           
 Duration getDefaultTransactionTimeout()
           
 Duration getFlushSleepTime()
           
 String getLogFileDir()
           
 String getLogFileExt()
           
 String getLogFileName()
           
 int getMaxBlocksPerFile()
           
 int getMaxBuffers()
           
 int getMaxLogFiles()
           
 int getMinBuffers()
           
 Properties getProperties()
          Gets the value of the properties property.
 int getThreadsWaitingForceThreshold()
           
 boolean getTxRecovery()
           
 TransactionManagerBuilder id(String id)
           
 void setAdler32Checksum(boolean adler32Checksum)
           
 void setBufferSizeKb(int bufferSizeKb)
           
 void setChecksumEnabled(boolean checksumEnabled)
           
 void setDefaultTransactionTimeout(Duration defaultTransactionTimeout)
           
 void setDefaultTransactionTimeout(long time, TimeUnit unit)
           
 void setFlushSleepTime(Duration flushSleepTime)
           
 void setFlushSleepTime(long time, TimeUnit unit)
           
 void setLogFileDir(String logFileDir)
           
 void setLogFileExt(String logFileExt)
           
 void setLogFileName(String logFileName)
           
 void setMaxBlocksPerFile(int maxBlocksPerFile)
           
 void setMaxBuffers(int maxBuffers)
           
 void setMaxLogFiles(int maxLogFiles)
           
 void setMinBuffers(int minBuffers)
           
 void setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
           
 void setTxRecovery(boolean txRecovery)
           
 TransactionManagerBuilder withAdler32Checksum(boolean adler32Checksum)
           
 TransactionManagerBuilder withBufferSizeKb(int bufferSizeKb)
           
 TransactionManagerBuilder withChecksumEnabled(boolean checksumEnabled)
           
 TransactionManagerBuilder withDefaultTransactionTimeout(Duration defaultTransactionTimeout)
           
 TransactionManagerBuilder withDefaultTransactionTimeout(long time, TimeUnit unit)
           
 TransactionManagerBuilder withFlushSleepTime(Duration flushSleepTime)
           
 TransactionManagerBuilder withFlushSleepTime(long time, TimeUnit unit)
           
 TransactionManagerBuilder withLogFileDir(String logFileDir)
           
 TransactionManagerBuilder withLogFileExt(String logFileExt)
           
 TransactionManagerBuilder withLogFileName(String logFileName)
           
 TransactionManagerBuilder withMaxBlocksPerFile(int maxBlocksPerFile)
           
 TransactionManagerBuilder withMaxBuffers(int maxBuffers)
           
 TransactionManagerBuilder withMaxLogFiles(int maxLogFiles)
           
 TransactionManagerBuilder withMinBuffers(int minBuffers)
           
 TransactionManagerBuilder withThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
           
 TransactionManagerBuilder withTxRecovery(boolean txRecovery)
           
 
Methods inherited from class org.apache.openejb.config.sys.AbstractService
equals, getClassName, getConstructor, getFactoryName, getId, getJar, getProvider, getType, hashCode, setClassName, setConstructor, setFactoryName, setId, setJar, setProvider, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerBuilder

public TransactionManagerBuilder()
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.