org.jboss.xnio
Interface SslTcpConnector
- All Superinterfaces:
- Connector<InetSocketAddress,SslTcpChannel>
public interface SslTcpConnector
- extends Connector<InetSocketAddress,SslTcpChannel>
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 addressopenListener - the listener which will be notified when the channel is open, or null for nonebindListener - 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
Copyright © 2010 JBoss, a division of Red Hat, Inc.