예제 #1
0
 /**
  * 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());
 }
예제 #2
0
  private void addCodecFactory(IoService service, ProtocolCodecFactory codecFactory) {
    LOG.debug("addCodecFactory name: {}", codecFactory.getClass().getName());

    service.getFilterChain().addLast("codec", new ProtocolCodecFilter(codecFactory));
  }