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 |
|---|---|
Cancellable |
connect(URI destination,
SocketAddress bindAddress,
OptionMap connectOptions,
Result<ConnectionHandlerFactory> result,
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, isOpenstatic final Object NO_PROVIDER_INTERFACES
Cancellable connect(URI destination, SocketAddress bindAddress, OptionMap connectOptions, Result<ConnectionHandlerFactory> result, 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)NetworkServerProviderCopyright © 2017 JBoss by Red Hat. All rights reserved.