Class JBossLocalTransactionProvider.Builder
java.lang.Object
org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider.Builder
- Enclosing class:
- JBossLocalTransactionProvider
A builder for a JBoss local transaction provider.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build this provider.org.jboss.tm.ExtendedJBossXATerminatorGet the extended JBoss XA terminator.intGet the stale transaction time, in seconds.jakarta.transaction.TransactionManagerGet the transaction manager.setExtendedJBossXATerminator(org.jboss.tm.ExtendedJBossXATerminator ext) Set the extended JBoss XA terminator.setStaleTransactionTime(int staleTransactionTime) Set the stale transaction time, in seconds.setTransactionManager(jakarta.transaction.TransactionManager tm) Set the transaction manager.Set the xa recovery log dir relative to pathsetXAResourceRecoveryRegistry(org.jboss.tm.XAResourceRecoveryRegistry reg) Set the xa resource recovery registry.
-
Method Details
-
getStaleTransactionTime
public int getStaleTransactionTime()Get the stale transaction time, in seconds.- Returns:
- the stale transaction time, in seconds
-
setStaleTransactionTime
Set the stale transaction time, in seconds. The time must be no less than one second.- Parameters:
staleTransactionTime- the stale transaction time, in seconds
-
getExtendedJBossXATerminator
public org.jboss.tm.ExtendedJBossXATerminator getExtendedJBossXATerminator()Get the extended JBoss XA terminator.- Returns:
- the extended JBoss XA terminator
-
setExtendedJBossXATerminator
public JBossLocalTransactionProvider.Builder setExtendedJBossXATerminator(org.jboss.tm.ExtendedJBossXATerminator ext) Set the extended JBoss XA terminator.- Parameters:
ext- the extended JBoss XA terminator (must not benull)
-
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager()Get the transaction manager.- Returns:
- the transaction manager
-
setTransactionManager
public JBossLocalTransactionProvider.Builder setTransactionManager(jakarta.transaction.TransactionManager tm) Set the transaction manager.- Parameters:
tm- the transaction manager
-
setXAResourceRecoveryRegistry
public JBossLocalTransactionProvider.Builder setXAResourceRecoveryRegistry(org.jboss.tm.XAResourceRecoveryRegistry reg) Set the xa resource recovery registry.- Parameters:
reg- xa resource recovery registry (must not benull)
-
setXARecoveryLogDirRelativeToPath
Set the xa recovery log dir relative to path- Parameters:
path- the xa recovery log file relative to path (must not benull
-
build
Build this provider. If any required properties arenull, an exception is thrown.- Returns:
- the built provider (not
null) - Throws:
IllegalArgumentException- if a required property isnull
-