Package com.google_voltpatches.common.util.concurrent

Examples of com.google_voltpatches.common.util.concurrent.ListeningExecutorService


    }

    public static <T> ListenableFuture<T> submitCompressionTask(Callable<T> task) {
        VoltDBInterface instance = VoltDB.instance();
        if (VoltDB.instance() != null) {
            ListeningExecutorService es = instance.getComputationService();
            if (es != null) {
                return es.submit(task);
            }
        }
        return m_executor.submit(task);
    }
View Full Code Here

TOP

Related Classes of com.google_voltpatches.common.util.concurrent.ListeningExecutorService

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.