Hi, all
In order to bring flow control capability to my application, I wrote
such code lines:

                connector = new NioSocketConnector();
                connector.setConnectTimeout(connectTimeout);
                connector.getFilterChain().addLast("codec",
                                new ProtocolCodecFilter(new
SMPPCodecFactory(false)));

                // >>>> please notice the following 2 lines
                connector.getFilterChain().addLast("exec", new
ExecutorFilter());
                connector.getFilterChain().addLast("throttle",
                                new
ReadThrottleFilter(Executors.newScheduledThreadPool(1)));

        
connector.getSessionConfig().setBothIdleTime(bothIdleTime);

Does it can enable ReadThrottleFilter and block excessive incoming
network packets?

BR
anderson

Reply via email to