/** * Create an instance of {@link AprDatagramSession}. * * <p>{@inheritDoc} */ AprDatagramSession( IoService service, IoProcessor<AprSession> processor, long descriptor, InetSocketAddress remoteAddress) throws Exception { super(service, processor, descriptor, remoteAddress); this.config.setAll(service.getSessionConfig()); }
private void addCodecFactory(IoService service, ProtocolCodecFactory codecFactory) { LOG.debug("addCodecFactory name: {}", codecFactory.getClass().getName()); service.getFilterChain().addLast("codec", new ProtocolCodecFilter(codecFactory)); }