public class StoreServerHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Modifier and Type | Field and Description |
---|---|
protected TCPCallBack |
callback |
protected int |
freq |
protected int |
maxQueue |
protected int |
maxThreads |
protected Executor |
threadPools |
Constructor and Description |
---|
StoreServerHandler(TCPCallBack callBack,
int maxThreads) |
StoreServerHandler(TCPCallBack callback,
int maxThreads,
int maxQueue) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
int |
getFreq() |
void |
handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
void |
setFreq(int freq) |
protected TCPCallBack callback
protected int maxThreads
protected int maxQueue
protected Executor threadPools
protected int freq
public StoreServerHandler(TCPCallBack callback, int maxThreads, int maxQueue)
public StoreServerHandler(TCPCallBack callBack, int maxThreads)
public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelEvent e) throws Exception
handleUpstream
in interface org.jboss.netty.channel.ChannelUpstreamHandler
handleUpstream
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public int getFreq()
public void setFreq(int freq)
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Copyright © 2016. All rights reserved.