Package co.arcs.groove.basking.task

Examples of co.arcs.groove.basking.task.SyncTask


    public ListenableFuture<SyncTask.Outcome> start(Config config) {

        final ListeningExecutorService exec = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(
                config.numConcurrent + 3));

        ListenableFuture<SyncTask.Outcome> syncOutcomeFuture = exec.submit(new SyncTask(bus,
                exec,
                config));

        // Shut down executor on completion
        Futures.addCallback(syncOutcomeFuture, new FutureCallback<Outcome>() {
View Full Code Here

TOP

Related Classes of co.arcs.groove.basking.task.SyncTask

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.