All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.singularity.async.ExecutorAndQueue Maven / Gradle / Ivy

package com.hubspot.singularity.async;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;

public class ExecutorAndQueue {
  private final ExecutorService executorService;
  private final LinkedBlockingQueue queue;
  private final int queueLimit;

  public ExecutorAndQueue(
    ExecutorService executorService,
    LinkedBlockingQueue queue,
    int queueLimit
  ) {
    this.executorService = executorService;
    this.queue = queue;
    this.queueLimit = queueLimit;
  }

  public ExecutorService getExecutorService() {
    return executorService;
  }

  public LinkedBlockingQueue getQueue() {
    return queue;
  }

  public int getQueueLimit() {
    return queueLimit;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy