ReadFilter readFilter = new ReadFilter();
readFilter.setContinuousExecution(false);
protocolChain.addFilter(readFilter);
protocolChain.addFilter(new StunMessageFilter(serverImpl));
stunPipeline = new DefaultPipeline(10,
2, "stun-pipeline", DEFAULT_STUN_PORT);
stunPipeline.setThreadsIncrement(1);
((DefaultPipeline) stunPipeline).setInitialByteBufferSize(4096);
((DefaultPipeline) stunPipeline).setByteBufferType(ByteBufferType.HEAP);
stunPipeline.setMaxQueueSize(-1);