public interface ConnectionProvider extends HandleableCloseable<ConnectionProvider>
HandleableCloseable.Key
Modifier and Type | Field and Description |
---|---|
static Object |
NO_PROVIDER_INTERFACES
The object to use when a connection provider has no provider interfaces.
|
Modifier and Type | Method and Description |
---|---|
org.xnio.Cancellable |
connect(URI destination,
SocketAddress bindAddress,
org.xnio.OptionMap connectOptions,
org.xnio.Result<ConnectionHandlerFactory> result,
org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration,
SSLContext sslContext,
UnaryOperator<SaslClientFactory> saslClientFactoryOperator,
Collection<String> serverMechs)
Open an outbound connection, using the (optionally) given socket addresses as source and destination.
|
Object |
getProviderInterface()
Get the user data associated with this connection provider.
|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsync, isOpen
static final Object NO_PROVIDER_INTERFACES
org.xnio.Cancellable connect(URI destination, SocketAddress bindAddress, org.xnio.OptionMap connectOptions, org.xnio.Result<ConnectionHandlerFactory> result, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, SSLContext sslContext, UnaryOperator<SaslClientFactory> saslClientFactoryOperator, Collection<String> serverMechs)
destination
- the destination URI, or null
if none is givenbindAddress
- the address to bind to, or null
if none is givenconnectOptions
- the options to use for this connectionresult
- the result which should receive the connectionauthenticationConfiguration
- the configuration to use for authentication of the connectionsslContext
- the SSL context to usesaslClientFactoryOperator
- A unary operator to apply to the SaslClientFactory used.serverMechs
- the list of server mechanism names to advertise to the peer (may be empty; not null
)IllegalArgumentException
- if any of the given arguments are not valid for this protocolObject getProviderInterface()
null
.null
)NetworkServerProvider
Copyright © 2022 JBoss, a division of Red Hat, Inc.. All rights reserved.