Interface SimpleIdResolver
public interface SimpleIdResolver
The provider interface for
RemoteTransaction instances which are located at a Remoting peer.- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionintgetTransactionId(org.jboss.remoting3.Connection connection) Get the transaction ID for the transaction from which this instance was taken.
-
Method Details
-
getTransactionId
int getTransactionId(@NotNull org.jboss.remoting3.Connection connection) throws jakarta.transaction.InvalidTransactionException Get the transaction ID for the transaction from which this instance was taken. Check against the given connection to ensure that the transaction matches the connection, throwing an exception otherwise.- Parameters:
connection- the connection (must not benull)- Returns:
- the transaction ID
- Throws:
jakarta.transaction.InvalidTransactionException- if the transaction does not match the connection
-