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

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

Introduction

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

Usage

From source file gobblin.util.executors.MDCPropagatingExecutorService.java

public class MDCPropagatingExecutorService extends ForwardingListeningExecutorService {
    private ListeningExecutorService executorService;

    public MDCPropagatingExecutorService(ExecutorService executorService) {
        if (executorService instanceof ListeningExecutorService) {
            this.executorService = (ListeningExecutorService) executorService;

From source file io.druid.query.MetricsEmittingExecutorService.java

public class MetricsEmittingExecutorService extends ForwardingListeningExecutorService {
    private final ListeningExecutorService delegate;
    private final ServiceEmitter emitter;
    private final ServiceMetricEvent.Builder metricBuilder;

    public MetricsEmittingExecutorService(ListeningExecutorService delegate, ServiceEmitter emitter,

From source file org.apache.gobblin.util.executors.MDCPropagatingExecutorService.java

public class MDCPropagatingExecutorService extends ForwardingListeningExecutorService {
    private ListeningExecutorService executorService;

    public MDCPropagatingExecutorService(ExecutorService executorService) {
        if (executorService instanceof ListeningExecutorService) {
            this.executorService = (ListeningExecutorService) executorService;

From source file org.apache.druid.query.MetricsEmittingExecutorService.java

public class MetricsEmittingExecutorService extends ForwardingListeningExecutorService
        implements ExecutorServiceMonitor.MetricEmitter {
    private final ListeningExecutorService delegate;

    public MetricsEmittingExecutorService(ListeningExecutorService delegate,
            ExecutorServiceMonitor executorServiceMonitor) {

From source file org.pentaho.reporting.platform.plugin.async.DelegatedListenableExecutor.java

/**
 * Decorates ExecutorService with Listenable functionality and
 * any other functionality provided by IListenableFutureDelegator
 */
public class DelegatedListenableExecutor extends ForwardingListeningExecutorService {

From source file gobblin.util.executors.MDCPropagatingScheduledExecutorService.java

public class MDCPropagatingScheduledExecutorService extends ForwardingListeningExecutorService
        implements ListeningScheduledExecutorService {
    private final ListeningScheduledExecutorService executorService;

    public MDCPropagatingScheduledExecutorService(ScheduledExecutorService executorService) {
        if (executorService instanceof ListeningScheduledExecutorService) {

From source file com.ibm.stocator.fs.cos.SemaphoredDelegatingExecutor.java

@SuppressWarnings("NullableProblems")
class SemaphoredDelegatingExecutor extends ForwardingListeningExecutorService {

    private final Semaphore queueingPermits;
    private final ListeningExecutorService executorDelegatee;
    private final int permitCount;

From source file org.apache.bookkeeper.common.util.BoundedScheduledExecutorService.java

/**
 * Implements {@link ListeningScheduledExecutorService} and allows limiting the number
 * of tasks to be scheduled in the thread's queue.
 *
 */
public class BoundedScheduledExecutorService extends ForwardingListeningExecutorService

From source file org.apache.gobblin.util.executors.MDCPropagatingScheduledExecutorService.java

public class MDCPropagatingScheduledExecutorService extends ForwardingListeningExecutorService
        implements ListeningScheduledExecutorService {
    private final ListeningScheduledExecutorService executorService;

    public MDCPropagatingScheduledExecutorService(ScheduledExecutorService executorService) {
        if (executorService instanceof ListeningScheduledExecutorService) {

From source file org.apache.s4.comm.staging.ThrottlingThreadPoolExecutorService.java

public class ThrottlingThreadPoolExecutorService extends ForwardingListeningExecutorService {

    private static Logger logger = LoggerFactory.getLogger(ThrottlingThreadPoolExecutorService.class);

    int parallelism;
    String streamName;