Class JBossLocalTransactionProvider.Builder
- java.lang.Object
-
- org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider.Builder
-
- Enclosing class:
- JBossLocalTransactionProvider
public static final class JBossLocalTransactionProvider.Builder extends Object
A builder for a JBoss local transaction provider.
-
-
Method Summary
-
-
-
Method Detail
-
getStaleTransactionTime
public int getStaleTransactionTime()
Get the stale transaction time, in seconds.- Returns:
- the stale transaction time, in seconds
-
setStaleTransactionTime
public JBossLocalTransactionProvider.Builder setStaleTransactionTime(int staleTransactionTime)
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)
-
getXATerminator
@Deprecated public javax.resource.spi.XATerminator getXATerminator()
Deprecated.Get the XA terminator.- Returns:
- the XA terminator
-
setXATerminator
@Deprecated public JBossLocalTransactionProvider.Builder setXATerminator(javax.resource.spi.XATerminator xt)
Deprecated.Set the XA terminator.- Parameters:
xt- the XA terminator (must not benull)
-
getTransactionManager
public TransactionManager getTransactionManager()
Get the transaction manager.- Returns:
- the transaction manager
-
setTransactionManager
public JBossLocalTransactionProvider.Builder setTransactionManager(TransactionManager tm)
Set the transaction manager.- Parameters:
tm- the transaction manager
-
getTransactionSynchronizationRegistry
@Deprecated public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
Deprecated.Get the transaction synchronization registry.- Returns:
- the transaction synchronization registry
-
setTransactionSynchronizationRegistry
@Deprecated public JBossLocalTransactionProvider.Builder setTransactionSynchronizationRegistry(TransactionSynchronizationRegistry tsr)
Deprecated.Set the transaction synchronization registry.- Parameters:
tsr- the transaction synchronization registry
-
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
public JBossLocalTransactionProvider.Builder setXARecoveryLogDirRelativeToPath(Path path)
Set the xa recovery log dir relative to path- Parameters:
path- the xa recovery log file relative to path (must not benull
-
build
public JBossLocalTransactionProvider 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
-
-