public abstract class NettyServerHelper extends HttpServerHelper
| Parameter name | Value type | Default value | Description |
|---|---|---|---|
| bufferFactoryClass | String | org.jboss.netty.buffer.HeapChannelBufferFactory | Channel buffer allocation strategy. |
| connectTimeoutMillis | int | 0 | Connect timeout of the channel in milliseconds. Sets to 0 to disable it. |
| keepAlive | boolean | false | Turn on/off socket keep alive. |
| reuseAddress | boolean | false | Enable/Disable reuse address for socket. |
| receiveBufferSize | int | 0 | Provide the size of the buffer actually used by the platform when receiving in data on this socket. |
| sendBufferSize | int | 0 | Set a hint the size of the underlying buffers for outgoing network I/O. |
| trafficClass | int | 0 | Sets traffic class or type-of-service octet in the IP header for packets sent from this Socket. As the underlying network implementation may ignore this value applications should consider it a hint. |
| Constructor and Description |
|---|
NettyServerHelper(Server server)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.jboss.netty.channel.ChannelPipelineFactory |
getPipelineFatory()
Returns the Netty pipeline factory.
|
void |
start()
Start callback.
|
void |
stop()
Stop callback.
|
getAdapter, handle, setAdapterhandle, setEphemeralPort, setEphemeralPortgetConnectorService, getContext, getProtocols, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic NettyServerHelper(Server server)
server - The server that will be helped.protected abstract org.jboss.netty.channel.ChannelPipelineFactory getPipelineFatory()
public void start()
throws java.lang.Exception
RestletHelperstart in class ConnectorHelper<Server>java.lang.Exceptionpublic void stop()
throws java.lang.Exception
RestletHelperstop in class ServerHelperjava.lang.ExceptionCopyright © 2005-2012. All Rights Reserved.