Class RemotingTransactionServer
- java.lang.Object
-
- org.wildfly.transaction.client.provider.remoting.RemotingTransactionServer
-
public final class RemotingTransactionServer extends Object
The per-connection transaction server. This can be used to resolve a local transaction for a given transaction ID.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalTransactiongetOrBeginTransaction(int id, int timeout)LocalTransactiongetTransactionIfExists(int id)RemotingTransactionServicegetTransactionService()Get the transaction service for this server.LocalTransactionremoveTransaction(int id)LocalTransactionrequireTransaction(int id)
-
-
-
Method Detail
-
requireTransaction
@NotNull public LocalTransaction requireTransaction(int id) throws jakarta.transaction.SystemException
- Throws:
jakarta.transaction.SystemException
-
getOrBeginTransaction
@NotNull public LocalTransaction getOrBeginTransaction(int id, int timeout) throws jakarta.transaction.SystemException
- Throws:
jakarta.transaction.SystemException
-
getTransactionIfExists
public LocalTransaction getTransactionIfExists(int id)
-
removeTransaction
public LocalTransaction removeTransaction(int id)
-
getTransactionService
public RemotingTransactionService getTransactionService()
Get the transaction service for this server.- Returns:
- the transaction service for this server (not
null)
-
-