public interface NettyServer extends Server
Server.TRANSMISSION_PROTOCOL, Server.TransmissionProtocol
Modifier and Type | Method and Description |
---|---|
void |
configureServerBootStrap(String[] optionsList)
If thread pools or TCP/IP parameters or the pipeline factory need to be
modified then it is this method that needs to be overriden.
|
org.jboss.netty.bootstrap.Bootstrap |
createServerBootstrap()
Creates a
ServerBootstrap object which is used to start a server. |
org.jboss.netty.channel.ChannelPipelineFactory |
getPipelineFactory()
createServerBootstrap will create a pipeline factory and save it as a
class variable.
|
org.jboss.netty.bootstrap.Bootstrap |
getServerBootstrap() |
void |
setPipelineFactory(org.jboss.netty.channel.ChannelPipelineFactory factory)
Method can be used to set the pipeline factory that is to be used by the
netty server.
|
void |
setServerBootstrap(org.jboss.netty.bootstrap.Bootstrap serverBootstrap)
Sets the server bootstrap, could be TCP, UDP bootstrap.
|
getSession, getSocketAddress, getTransmissionProtocol, setSession, startServer, startServer, startServer, stopServer
org.jboss.netty.bootstrap.Bootstrap createServerBootstrap()
ServerBootstrap
object which is used to start a server.ServerBootstrap
.void configureServerBootStrap(String[] optionsList)
optionsList
- Used to set tcp ip options like noDelay etc.org.jboss.netty.channel.ChannelPipelineFactory getPipelineFactory()
void setPipelineFactory(org.jboss.netty.channel.ChannelPipelineFactory factory)
factory
- The factory which will create a pipeline on each incoming
connection.org.jboss.netty.bootstrap.Bootstrap getServerBootstrap()
void setServerBootstrap(org.jboss.netty.bootstrap.Bootstrap serverBootstrap)
serverBootstrap
- Copyright © 2013. All Rights Reserved.