dev@grizzly.java.net

do I neet to stop filter chain?

From: Mkrtchyan, Tigran <tigran.mkrtchyan_at_desy.de>
Date: Mon, 10 Mar 2014 21:53:22 +0100 (CET)

Hi,

I have a filter which extends BaseFilter.
Do I need to stop execution after successful reply?
E.g:

        public NextAction handleRead(FilterChainContext ctx) throws IOException {
              // do some staff
              
             ctx.write(peerAddress, message, null);
             return ctx.getStopAction();
        }

or

        public NextAction handleRead(FilterChainContext ctx) throws IOException {
              // do some staff
              
             ctx.write(peerAddress, message, null);
              return ctx.getInvokeAction();
        }


The filter is the last in the chain.

Thanks,
   Tigran.