Interface RemoteTransactionProvider
- All Superinterfaces:
TransactionProvider
- All Known Implementing Classes:
RemotingRemoteTransactionProvider
A remote transaction transport provider.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiongetPeerHandle(URI location, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration) Get a handle for a specific peer.default RemoteTransactionPeergetPeerHandleForXa(URI location, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration) Get a handle for a specific peer for an XA operation.booleansupportsScheme(String scheme) Determine whether the provider supports the given URI scheme.
-
Method Details
-
getPeerHandle
RemoteTransactionPeer getPeerHandle(URI location, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration) throws jakarta.transaction.SystemException Get a handle for a specific peer.- Parameters:
location- the peer locationsslContext- the sticky SSL context to use (may benull)authenticationConfiguration- the sticky authentication configuration to use (may benull)- Returns:
- the handle, or
nullif this provider does not support this location - Throws:
jakarta.transaction.SystemException- if handle acquisition has failed
-
getPeerHandleForXa
default RemoteTransactionPeer getPeerHandleForXa(URI location, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration) throws XAException Get a handle for a specific peer for an XA operation. Identical togetPeerHandle(URI, SSLContext, AuthenticationConfiguration)except that anXAExceptionis thrown in case of error instead ofSystemException.- Parameters:
location- the peer location (notnull)sslContext- the sticky SSL context to use (may benull)authenticationConfiguration- the sticky authentication configuration to use (may benull)- Returns:
- the handle, or
nullif this provider does not support this location - Throws:
XAException
-
supportsScheme
Determine whether the provider supports the given URI scheme.- Parameters:
scheme- the URI scheme (notnull)- Returns:
trueif the scheme is supported,falseotherwise
-