Package org.jboss.threads.AsyncFuture

Examples of org.jboss.threads.AsyncFuture.Status


    //TODO this should be deleted once REM3-121 is available
    public boolean ping(long timeoutMs) {
        ManagementClientChannelStrategy channelStrategy = getChannelStrategy();
        AsyncFuture<Void> future = new PingRequest().execute(executorService, channelStrategy);
        try {
            Status status = future.await(timeoutMs, TimeUnit.MILLISECONDS);
            if (status == Status.WAITING) {
                return false;
            }
            return status == Status.COMPLETE;
        } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of org.jboss.threads.AsyncFuture.Status

Copyright © 2018 www.massapicom. 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.