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(SocketAddress bindAddress,
SocketAddress destination,
OptionMap connectOptions,
Result<ConnectionHandlerFactory> result,
CallbackHandler callbackHandler,
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
Cancellable connect(SocketAddress bindAddress, SocketAddress destination, OptionMap connectOptions, Result<ConnectionHandlerFactory> result, CallbackHandler callbackHandler, 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 © 2016 JBoss by Red Hat. All rights reserved.