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(SocketAddress bindAddress,
SocketAddress destination,
org.xnio.OptionMap connectOptions,
org.xnio.Result<ConnectionHandlerFactory> result,
CallbackHandler callbackHandler,
org.xnio.ssl.XnioSsl xnioSsl)
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
static final Object NO_PROVIDER_INTERFACES
org.xnio.Cancellable connect(SocketAddress bindAddress, SocketAddress destination, org.xnio.OptionMap connectOptions, org.xnio.Result<ConnectionHandlerFactory> result, CallbackHandler callbackHandler, org.xnio.ssl.XnioSsl xnioSsl) throws IllegalArgumentException
bindAddress
- the local address to bind to for this outbound connection, or null
to choose one automaticallydestination
- the destination socket address, or null
if none is givenconnectOptions
- the options to use for this connectionresult
- the result which should receive the connectioncallbackHandler
- the callback handler to use for authenticationxnioSsl
- the XNIO SSL context to useIllegalArgumentException
- if any of the given arguments are not valid for this protocolObject getProviderInterface()
null
.null
)NetworkServerProvider
Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.