final class LocalConnectionProvider extends AbstractHandleableCloseable<ConnectionProvider> implements ConnectionProvider
| Modifier and Type | Class and Description |
|---|---|
private class |
LocalConnectionProvider.LoopbackConnectionHandler |
HandleableCloseable.Key| Modifier and Type | Field and Description |
|---|---|
private ConnectionProviderContext |
context |
private java.util.concurrent.Executor |
executor |
NO_PROVIDER_INTERFACES| Constructor and Description |
|---|
LocalConnectionProvider(ConnectionProviderContext context,
java.util.concurrent.Executor executor) |
| 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.
|
java.lang.String |
toString() |
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, checkOpen, close, closeAction, closeAsync, closeComplete, closeFailed, finalize, getExecutor, isOpenclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsyncprivate final java.util.concurrent.Executor executor
private final ConnectionProviderContext context
LocalConnectionProvider(ConnectionProviderContext context, java.util.concurrent.Executor executor)
public 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
ConnectionProviderconnect in interface ConnectionProviderbindAddress - 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 protocolpublic java.lang.Object getProviderInterface()
ConnectionProvidernull.getProviderInterface in interface ConnectionProvidernull)NetworkServerProviderpublic java.lang.String toString()
toString in class java.lang.Object