public abstract class XnioSsl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SSLContext |
sslContext
The SSL context for this instance.
|
protected Xnio |
xnio
The corresponding XNIO instance.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XnioSsl(Xnio xnio,
SSLContext sslContext,
OptionMap optionMap)
Construct a new instance.
|
protected final Xnio xnio
protected final SSLContext sslContext
protected XnioSsl(Xnio xnio, SSLContext sslContext, OptionMap optionMap)
xnio - the XNIO instancesslContext - optionMap - the option map to configure this providerpublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
worker - the worker to usedestination - the destination connection addressopenListener - the initial open-connection listeneroptionMap - the option mappublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
worker - the worker to usedestination - the destination connection addressopenListener - the initial open-connection listenerbindListener - the bind listeneroptionMap - the option mappublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
worker - the worker to usebindAddress - the local bind addressdestination - the destination connection addressopenListener - the initial open-connection listeneroptionMap - the option mappublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
worker - the worker to usebindAddress - the local bind addressdestination - the destination connection addressopenListener - the initial open-connection listenerbindListener - the bind listeneroptionMap - the option mappublic abstract AcceptingChannel<ConnectedSslStreamChannel> createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws IOException
worker - the worker to usebindAddress - the address to bind toacceptListener - the initial accept listeneroptionMap - the initial configuration for the serverIOException - if the server could not be createdCopyright © 2012 JBoss by Red Hat. All Rights Reserved.