private final ConnectionPerIpLimitUpstreamHandler connectionPerIpLimitHandler;
private TimeoutHandler timeoutHandler;
private ChannelGroupHandler groupHandler;
public AbstractChannelPipelineFactory(int timeout, int maxConnections, int maxConnectsPerIp, ChannelGroup channels) {
timeoutHandler = new TimeoutHandler(new HashedWheelTimer(), timeout, timeout, 0);
connectionLimitHandler = new ConnectionLimitUpstreamHandler(maxConnections);
connectionPerIpLimitHandler = new ConnectionPerIpLimitUpstreamHandler(maxConnectsPerIp);
groupHandler = new ChannelGroupHandler(channels);
}