
public interface ConnectionProvider extends HandleableCloseable<ConnectionProvider>
HandleableCloseable.Key| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
org.xnio.Result<ConnectionHandlerFactory> result,
javax.security.auth.callback.CallbackHandler callbackHandler,
org.xnio.ssl.XnioSsl xnioSsl)
Open an outbound connection, using the (optionally) given socket addresses as source and destination.
|
java.lang.Object |
getProviderInterface()
Get the user data associated with this connection provider.
|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsyncstatic final java.lang.Object NO_PROVIDER_INTERFACES
org.xnio.Cancellable connect(java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
org.xnio.Result<ConnectionHandlerFactory> result,
javax.security.auth.callback.CallbackHandler callbackHandler,
org.xnio.ssl.XnioSsl xnioSsl)
throws java.lang.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 usejava.lang.IllegalArgumentException - if any of the given arguments are not valid for this protocoljava.lang.Object getProviderInterface()
null.null)NetworkServerProviderCopyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.