org.jboss.xnio.nio
Class NioTcpConnectorFactory

java.lang.Object
  extended by org.jboss.xnio.nio.AbstractConfigurable
      extended by org.jboss.xnio.nio.NioTcpConnectorFactory
All Implemented Interfaces:
Configurable, ConfigurableFactory<CloseableTcpConnector>

public final class NioTcpConnectorFactory
extends AbstractConfigurable
implements ConfigurableFactory<CloseableTcpConnector>


Constructor Summary
NioTcpConnectorFactory(NioXnio xnio, java.util.concurrent.Executor executor)
           
 
Method Summary
 CloseableTcpConnector create()
          Create the instance based on the configuration.
 
Methods inherited from class org.jboss.xnio.nio.AbstractConfigurable
getOption, getOptions, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.xnio.channels.Configurable
getOption, getOptions, setOption
 

Constructor Detail

NioTcpConnectorFactory

public NioTcpConnectorFactory(NioXnio xnio,
                              java.util.concurrent.Executor executor)
Method Detail

create

public CloseableTcpConnector create()
                             throws java.io.IOException,
                                    java.lang.IllegalStateException
Description copied from interface: ConfigurableFactory
Create the instance based on the configuration.

Specified by:
create in interface ConfigurableFactory<CloseableTcpConnector>
Returns:
the instance
Throws:
java.io.IOException - if an error occurs starting the instance
java.lang.IllegalStateException - if the instance was already created