| Constructor and Description |
|---|
NettyServer(Responder responder,
InetSocketAddress addr) |
NettyServer(Responder responder,
InetSocketAddress addr,
org.jboss.netty.channel.ChannelFactory channelFactory) |
NettyServer(Responder responder,
InetSocketAddress addr,
org.jboss.netty.channel.ChannelFactory channelFactory,
org.jboss.netty.handler.execution.ExecutionHandler executionHandler) |
public NettyServer(Responder responder, InetSocketAddress addr)
public NettyServer(Responder responder, InetSocketAddress addr, org.jboss.netty.channel.ChannelFactory channelFactory)
public NettyServer(Responder responder, InetSocketAddress addr, org.jboss.netty.channel.ChannelFactory channelFactory, org.jboss.netty.handler.execution.ExecutionHandler executionHandler)
executionHandler - if not null, will be inserted into the Netty
pipeline. Use this when your responder does
long, non-cpu bound processing (see Netty's
ExecutionHandler javadoc).public void start()
Serverpublic void close()
Serverpublic int getPort()
Serverpublic void join()
throws InterruptedException
Serverjoin in interface ServerInterruptedExceptionCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.