Example usage for java.util.concurrent ThreadPoolExecutor subclass-usage

List of usage examples for java.util.concurrent ThreadPoolExecutor subclass-usage

Introduction

In this page you can find the example usage for java.util.concurrent ThreadPoolExecutor subclass-usage.

Usage

From source file org.phoenicis.multithreading.ControlledThreadPoolExecutorService.java

public class ControlledThreadPoolExecutorService extends ThreadPoolExecutor {
    private static final Logger LOGGER = LoggerFactory.getLogger(ControlledThreadPoolExecutorService.class);

    private final Semaphore semaphore;
    private final String name;
    private final AtomicLong processed = new AtomicLong(0);

From source file org.polymap.core.runtime.PolymapThreadPoolExecutor.java

/**
 * 
 *
 * @author <a href="http://www.polymap.de">Falko Brutigam</a>
 */
public class PolymapThreadPoolExecutor extends ThreadPoolExecutor implements ThreadFactory {

From source file io.kahu.hawaii.util.call.dispatch.HawaiiExecutorImpl.java

/**
 * Implementation of an ThreadPoolExecutor that first adds new threads and then queues tasks.
 */
@ThreadSafe
public class HawaiiExecutorImpl extends ThreadPoolExecutor implements HawaiiExecutor {
    private final AtomicLong rejected = new AtomicLong(0L);

From source file org.alfresco.extension.bulkimport.impl.BulkImportThreadPoolExecutor.java

/**
 * This class provides a simplified <code>ThreadPoolExecutor</code>
 * that uses sensible defaults for the bulk import tool.  Note that calls to
 * <code>execute</code> and <code>submit</code> can block.
 *
 * @author Peter Monks (pmonks@gmail.com)

From source file org.alfresco.util.DynamicallySizedThreadPoolExecutor.java

/**
 * This is an instance of {@link java.util.concurrent.ThreadPoolExecutor} which 
 * behaves how one would expect it to, even when faced with an unlimited
 * queue. Unlike the default {@link java.util.concurrent.ThreadPoolExecutor}, it
 * will add new Threads up to {@link #setMaximumPoolSize(int) maximumPoolSize}
 * when there is lots of pending work, rather than only when the queue is full

From source file com.fusesource.forge.jmstest.executor.TerminatingThreadPoolExecutor.java

public class TerminatingThreadPoolExecutor extends ThreadPoolExecutor {
    private AtomicLong lastSubmit = new AtomicLong(System.currentTimeMillis());
    private ScheduledThreadPoolExecutor scheduledChecker = null;

    private String name;

From source file org.apache.nutch.service.impl.NutchServerPoolExecutor.java

public class NutchServerPoolExecutor extends ThreadPoolExecutor {

    private Queue<JobWorker> workersHistory;
    private Queue<JobWorker> runningWorkers;

    public NutchServerPoolExecutor(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit unit,

From source file org.hyperic.hq.zevents.BufferedListener.java

class BufferedListener<T extends Zevent> extends ThreadPoolExecutor implements ZeventListener<T> {
    private static Log _log = LogFactory.getLog(BufferedListener.class);

    private final ZeventListener<T> _target;

    BufferedListener(ZeventListener<T> target, ThreadGroupFactory fact) {

From source file com.brienwheeler.lib.concurrent.ThreadPoolExecutor.java

/**
 * Extension to the standard java.util.concurrent.ThreadPoolExecutor that enforces the best practice
 * of always using a NamedThreadFactory to provide semantically useful thread names in thread pools.
 * 
 * @author bwheeler
 */

From source file org.apache.nutch.api.impl.JobWorkerPoolExecutor.java

public class JobWorkerPoolExecutor extends ThreadPoolExecutor {

    private Map<String, JobWorker> retiredWorkers = Maps.newHashMap();
    private Map<String, JobWorker> runningWorkers = Maps.newHashMap();

    public JobWorkerPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit,