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 Details

    • 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 be null)
    • 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 be null)
    • 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 be null
    • build

      Build this provider. If any required properties are null, an exception is thrown.
      Returns:
      the built provider (not null)
      Throws:
      IllegalArgumentException - if a required property is null