Package java.util.concurrent

Examples of java.util.concurrent.ScheduledFuture.cancel()


    @JSStaticFunction
    public static void clearTimeout(int id) {
        ScheduledFuture task = tasks.remove(id);

        if (task != null) {
            task.cancel(true);
        }
    }

    /**
     * <p>
 
View Full Code Here


            if(transfer instanceof OutboundReliableMessageTransfer){
                ScheduledFuture retransmissionFuture =
                        ((OutboundReliableMessageTransfer) transfer).getRetransmissionFuture();

                //Try to cancel the retransmission
                if(!retransmissionFuture.cancel(true)){
                    log.error("Could not cancel retransmission of update notification (remote endpoint: {}, " +
                        "message ID: {})", remoteEndpoint, messageID);
                }

                long delay = Math.max(retransmissionFuture.getDelay(TimeUnit.MILLISECONDS), 0);
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.