Class RemotingTransactionServer
java.lang.Object
org.wildfly.transaction.client.provider.remoting.RemotingTransactionServer
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
Modifier and TypeMethodDescriptiongetOrBeginTransaction(int id, int timeout) getTransactionIfExists(int id) Get the transaction service for this server.removeTransaction(int id) requireTransaction(int id)
-
Method Details
-
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
-
removeTransaction
-
getTransactionService
Get the transaction service for this server.- Returns:
- the transaction service for this server (not
null)
-