Package org.serviceconnector.net.req.netty

Examples of org.serviceconnector.net.req.netty.NettyOperationListener.awaitUninterruptibly()


      if (this.channel != null) {
        ChannelFuture future = this.channel.close();
        NettyOperationListener operationListener = new NettyOperationListener();
        future.addListener(operationListener);
        try {
          operationListener.awaitUninterruptibly(Constants.TECH_LEVEL_OPERATION_TIMEOUT_MILLIS);
        } catch (CommunicationException ex) {
          LOGGER.error("disconnect", ex); // stopListening must continue
        }
      }
      if (this.serverThread != null) {
View Full Code Here


      if (this.channel != null) {
        ChannelFuture future = this.channel.close();
        NettyOperationListener operationListener = new NettyOperationListener();
        future.addListener(operationListener);
        try {
          operationListener.awaitUninterruptibly(Constants.TECH_LEVEL_OPERATION_TIMEOUT_MILLIS);
        } catch (CommunicationException ex) {
          LOGGER.error("disconnect", ex); // stopListening must continue
        }
      }
      if (this.serverThread != null) {
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.