Package com.salas.bb.utils.concurrency

Examples of com.salas.bb.utils.concurrency.NamingThreadFactory


        if (LOG.isLoggable(Level.CONFIG)) LOG.config("Number of worker threads: " + threads);

        // Create a pool of executors with minimum thread priority
        executor = ExecutorFactory.createPooledExecutor(
            new NamingThreadFactory("Poller", Thread.MIN_PRIORITY),
            threads, THREAD_KEEP_ALIVE_TIME,
            new BoundedPriorityQueue(QUEUE_SIZE, new PollerTaskPrioritizer()),
            ExecutorFactory.BlockedPolicy.DISCARD);

        // Note: The policy is "Discard" a requst if the queue is full
View Full Code Here


    {
        if (listener == null) throw new IllegalArgumentException("Listener can't be NULL");
       
        this.listener = listener;

        executor = ExecutorFactory.createPooledExecutor(new NamingThreadFactory("Link Resolver", Thread.MIN_PRIORITY),
                5, 1000);
    }
View Full Code Here

TOP

Related Classes of com.salas.bb.utils.concurrency.NamingThreadFactory

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.