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()
Server
public void close()
Server
public int getPort()
Server
public void join() throws InterruptedException
Server
join
in interface Server
InterruptedException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.