Example usage for com.google.common.util.concurrent AbstractListeningExecutorService subclass-usage

List of usage examples for com.google.common.util.concurrent AbstractListeningExecutorService subclass-usage

Introduction

In this page you can find the example usage for com.google.common.util.concurrent AbstractListeningExecutorService subclass-usage.

Usage

From source file com.skcraft.launcher.util.SwingExecutor.java

public final class SwingExecutor extends AbstractListeningExecutorService {

    public static final SwingExecutor INSTANCE = new SwingExecutor();

    private SwingExecutor() {
    }

From source file com.facebook.buck.util.concurrent.FakeListeningExecutorService.java

/**
 * Fake implementation of {@link ListeningExecutorService} that can be used for unit tests. In
 * particular, it is designed to capture whether {@link #shutdownNow()} was invoked.
 */
public class FakeListeningExecutorService extends AbstractListeningExecutorService {

From source file org.onos.yangtools.util.concurrent.AsyncNotifyingListeningExecutorService.java

/**
 * An {@link com.google.common.util.concurrent.ListeningExecutorService} implementation that also allows for an {@link Executor} to be
 * specified on construction that is used to execute {@link ListenableFuture} callback Runnables,
 * registered via {@link com.google.common.util.concurrent.Futures#addCallback} or {@link ListenableFuture#addListener} directly,
 * asynchronously when a task that is run on this executor completes. This is useful when you want
 * to guarantee listener callback executions are off-loaded onto another thread to avoid blocking

From source file org.opendaylight.yangtools.util.concurrent.AsyncNotifyingListeningExecutorService.java

/**
 * An {@link com.google.common.util.concurrent.ListeningExecutorService}
 * implementation that also allows for an {@link Executor} to be specified on
 * construction that is used to execute {@link ListenableFuture} callback
 * Runnables, registered via
 * {@link com.google.common.util.concurrent.Futures#addCallback} or

From source file com.thepsionic.undercraft.internal.SchedulerBase.java

/**
 * @author diesieben07
 */
public abstract class SchedulerBase extends AbstractListeningExecutorService {

    protected abstract void addTask(SchedulerInternalTask task);

From source file com.facebook.buck.util.concurrent.WeightedListeningExecutorService.java

/**
 * A {@link ListeningExecutorService} which gates execution using a {@link ListeningMultiSemaphore}
 * and allows resources to be assigned to submitted tasks.
 *
 * NOTE: If futures for submitted jobs are cancelled while they are running, it's possible that the
 * semaphore will be released for that cancelled job before it is finished, meaning more jobs may be

From source file com.kolich.curacao.util.SafeListeningExecutorServiceDecorator.java

/**
 * This is a custom implementation of a {@link ListeningExecutorService}
 * so we can control the execution of new runnables.  The Google default
 * implementation of their internal ListeningDecorator blindly submits a
 * runnable for execution even if the delegate executor service is shutdown.
 * This results in a total spew of excessive {@link RejectedExecutionException}'s