Package org.apache.mina.core.future

Examples of org.apache.mina.core.future.ConnectFuture.cancel()


    ConnectFuture future = connector.connect(
      new InetSocketAddress( address, port ),
      new VMIDSlotInitializer<ConnectFuture>( args, reconnect_token, container,
        attachment, original_vmid ) );
    if ( !future.await( timeout_ns, TimeUnit.NANOSECONDS ) ) {
      future.cancel();

      // TODO: better way to do this??
      // HACK ALERT: In situations where the connection times out, there can be a
      //             file descriptor leak because MINA doesn't seem to close the
      //             handler (SocketChannel) when the ConnectFuture is canceled.
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.