Package com.blacklocus.qs.worker.util.task

Examples of com.blacklocus.qs.worker.util.task.ThreadedFIFOQSTaskService


        QueueingStrategy<QSTaskModel> queueingStrategy = QueueingStrategies.newHeapQueueingStrategy(
                configuration.getDouble(QSConfig.PROP_HEAP_STRATEGY_TRIGGER),
                configuration.getLong(QSConfig.PROP_HEAP_STRATEGY_MAX_DELAY),
                configuration.getLong(QSConfig.PROP_HEAP_STRATEGY_HINT)
        );
        QSTaskService taskService = new ThreadedFIFOQSTaskService(queueingStrategy, taskServices);
        TaskServiceIterable taskIterable = new TaskServiceIterable(taskService);
        Iterable<Collection<TaskHandle>> taskControlIterable = Iterables.transform(taskIterable, new TaskControlFunction(workerIdService));

        ExecutorService workerExecutorService = StrategicExecutors.newBalancingThreadPoolExecutor(
                new ThreadPoolExecutor(
View Full Code Here


        QueueingStrategy<QSTaskModel> queueingStrategy = QueueingStrategies.newHeapQueueingStrategy(
                configuration.getDouble(QSConfig.PROP_HEAP_STRATEGY_TRIGGER),
                configuration.getLong(QSConfig.PROP_HEAP_STRATEGY_MAX_DELAY),
                configuration.getLong(QSConfig.PROP_HEAP_STRATEGY_HINT)
        );
        QSTaskService taskService = new ThreadedFIFOQSTaskService(queueingStrategy, taskServices);
        TaskServiceIterable taskIterable = new TaskServiceIterable(taskService);

        ExecutorService workerExecutorService = StrategicExecutors.newBalancingThreadPoolExecutor(
                new ThreadPoolExecutor(
                        configuration.getInt(QSConfig.PROP_WORKER_POOL_CORE),
View Full Code Here

        QueueingStrategy<QSTaskModel> queueingStrategy = QueueingStrategies.newHeapQueueingStrategy(
                configuration.getDouble(QSConfig.PROP_HEAP_STRATEGY_TRIGGER),
                configuration.getLong(QSConfig.PROP_HEAP_STRATEGY_MAX_DELAY),
                configuration.getLong(QSConfig.PROP_HEAP_STRATEGY_HINT)
        );
        QSTaskService taskService = new ThreadedFIFOQSTaskService(queueingStrategy, taskServices);
        TaskServiceIterable taskIterable = new TaskServiceIterable(taskService);

        ExecutorService workerExecutorService = StrategicExecutors.newBalancingThreadPoolExecutor(
                new ThreadPoolExecutor(
                        configuration.getInt(QSConfig.PROP_WORKER_POOL_CORE),
View Full Code Here

TOP

Related Classes of com.blacklocus.qs.worker.util.task.ThreadedFIFOQSTaskService

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.