Example usage for java.util.concurrent Executor interface-usage

List of usage examples for java.util.concurrent Executor interface-usage

Introduction

In this page you can find the example usage for java.util.concurrent Executor interface-usage.

Usage

From source file com.juhuasuan.osprey.DIYExecutor.java

/**
 * @author juxin.zj E-mail:juxin.zj@taobao.com
 * @since 2012-3-16
 * @version 1.0
 */
public class DIYExecutor implements Executor {

From source file com.microsoft.tfs.core.clients.versioncontrol.internal.concurrent.BoundedExecutor.java

/**
 * Controls access via sempahore to another Executor (pool of worker threads
 * that executes runnables via {@link #execute(Runnable)}). The maximum number
 * of tasks to process at once is controlled via the bounds passed at
 * construction. There's no reason to use a bounded other Executor because all
 * the throttling is done here.

From source file edu.vt.middleware.gator.server.LoggingEventHandlerExecutor.java

/**
 * Implementation of {@link ThreadPoolExecutor} that always creates new threads
 * for handling {@link LoggingEventHandler} tasks. The primary purpose of this
 * class is to set up the name and, if possible, {@link MDC} of each worker
 * thread.
 *

From source file edu.vt.middleware.gator.log4j.LoggingEventHandlerExecutor.java

/**
 * Implementation of {@link ThreadPoolExecutor} that always creates new threads
 * for handling {@link LoggingEventHandler} tasks. The primary purpose of this
 * class is to set up the name and, if possible, {@link MDC} of each worker
 * thread.
 *

From source file io.dyn.core.NonBlockingTaskExecutor.java

/**
 * @author Jon Brisbin <jon@jbrisbin.com>
 */
public class NonBlockingTaskExecutor implements Executor, TaskExecutor {

    private AtomicBoolean active = new AtomicBoolean(true);

From source file org.commonreality.executor.InlineExecutor.java

/**
 * @author developer
 */
public class InlineExecutor implements Executor {
    /**
     * logger definition

From source file com.thesoftwareguild.flightmaster.queryExecutor.ExecutorPQ.java

/**
 * Generates a singleton priority queue that is ordered by unix time. User of
 * this class can add request objects. The queue calls the execute method on the
 * request, which calls the execute method on the query object.
 *
 * @author Yan

From source file org.apache.axis2.jaxws.utility.SingleThreadedExecutor.java

/**
 * A simple Executor implementation that does not create a new thread 
 * for processing work, but just borrows the current thread.
 */
public class SingleThreadedExecutor implements Executor {

From source file bad.robot.http.apache.ApacheExceptionWrappingExecutor.java

public class ApacheExceptionWrappingExecutor implements Executor<HttpException> {

    @Override
    public <V> V submit(Callable<V> callable) throws HttpException {
        try {
            return callable.call();

From source file com.yoho.core.trace.instrument.async.LazyTraceExecutor.java

/**
 * {@link Executor} that wraps {@link Runnable} in a
 * {@link TraceRunnable TraceRunnable} that sets a
 * local component tag on the span.
 *
 * @author Dave Syer