Interface RemoteTransactionProvider
-
- All Superinterfaces:
TransactionProvider
- All Known Implementing Classes:
RemotingRemoteTransactionProvider
public interface RemoteTransactionProvider extends TransactionProvider
A remote transaction transport provider.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RemoteTransactionPeergetPeerHandle(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 Detail
-
getPeerHandle
RemoteTransactionPeer getPeerHandle(URI location, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration) throws 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:
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
boolean supportsScheme(String scheme)
Determine whether the provider supports the given URI scheme.- Parameters:
scheme- the URI scheme (notnull)- Returns:
trueif the scheme is supported,falseotherwise
-
-