Class JBossLocalTransactionProvider.Builder

  • Enclosing class:
    JBossLocalTransactionProvider

    public static final class JBossLocalTransactionProvider.Builder
    extends Object
    A builder for a JBoss local transaction provider.
    • 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 be null)
      • getXATerminator

        @Deprecated
        public jakarta.resource.spi.XATerminator getXATerminator()
        Deprecated.
        Get the XA terminator.
        Returns:
        the XA terminator
      • 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
      • getTransactionSynchronizationRegistry

        @Deprecated
        public jakarta.transaction.TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
        Deprecated.
        Get the transaction synchronization registry.
        Returns:
        the transaction synchronization registry
      • setTransactionSynchronizationRegistry

        @Deprecated
        public JBossLocalTransactionProvider.Builder setTransactionSynchronizationRegistry​(jakarta.transaction.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 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