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

com.mageddo.tobby.internal.utils.BatchThread Maven / Gradle / Ivy

There is a newer version: 2.1.6-alpha
Show newest version
package com.mageddo.tobby.internal.utils;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;

public class BatchThread {

  private final List> callables;

  public BatchThread() {
    this.callables = new ArrayList<>();
  }

  public BatchThread add(Callable callable){
    this.callables.add(callable);
    return this;
  }

  public List> getCallables() {
    return this.callables;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy