Examples of IoSessionConfig


Examples of org.apache.mina.core.session.IoSessionConfig

  private Logger logger = Logger.getLogger(TaskQueueHandler.class
      .getName());

  @Override
  public void sessionCreated(IoSession session) throws Exception {
    IoSessionConfig cfg = session.getConfig();
      if (cfg instanceof SocketSessionConfig) {
       ((SocketSessionConfig) cfg).setKeepAlive(false);
       ((SocketSessionConfig) cfg).setSoLinger(0);
       ((SocketSessionConfig) cfg).setTcpNoDelay(true);
       ((SocketSessionConfig) cfg).setWriteTimeout(1000 * 5);
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.