XNIO API 2.1.0.CR2

org.jboss.xnio
Interface SslTcpConnector

All Superinterfaces:
Connector<InetSocketAddress,SslTcpChannel>

public interface SslTcpConnector
extends Connector<InetSocketAddress,SslTcpChannel>


Method Summary
 IoFuture<SslTcpChannel> connectTo(InetSocketAddress destination, ChannelListener<? super SslTcpChannel> openListener, ChannelListener<? super BoundChannel<InetSocketAddress>> bindListener)
          Establish a connection to an SSL TCP server.
 ChannelSource<SslTcpChannel> createChannelSource(InetSocketAddress destination)
          Create a channel source that always connects to the given SSL TCP server.
 

Method Detail

connectTo

IoFuture<SslTcpChannel> connectTo(InetSocketAddress destination,
                                  ChannelListener<? super SslTcpChannel> openListener,
                                  ChannelListener<? super BoundChannel<InetSocketAddress>> bindListener)
Establish a connection to an SSL TCP server.

Specified by:
connectTo in interface Connector<InetSocketAddress,SslTcpChannel>
Parameters:
destination - the destination address
openListener - the listener which will be notified when the channel is open, or null for none
bindListener - the listener which will be notified when the channel is bound, or null for none
Returns:
the future result of this operation

createChannelSource

ChannelSource<SslTcpChannel> createChannelSource(InetSocketAddress destination)
Create a channel source that always connects to the given SSL TCP server.

Specified by:
createChannelSource in interface Connector<InetSocketAddress,SslTcpChannel>
Parameters:
destination - the destination to connect to
Returns:
the channel source

XNIO API 2.1.0.CR2

Copyright © 2010 JBoss, a division of Red Hat, Inc.