Class ExecutorRepository<O>

java.lang.Object
ecmwf.common.technical.ExecutorRepository<O>
Type Parameters:
O - the generic type

public abstract class ExecutorRepository<O> extends Object
The Class ExecutorRepository.
  • Constructor Details

    • ExecutorRepository

      protected ExecutorRepository(List<Exception> exceptions, AtomicLong processedCount, Collection<O> objects)
      Instantiates a new executor repository. Process the actions in parallel.
      Parameters:
      exceptions - the exceptions
      processedCount - the processed count
      objects - the objects
    • ExecutorRepository

      protected ExecutorRepository(int maxWaiting, int maxRunning, List<Exception> exceptions, AtomicLong processedCount, Collection<O> objects)
      Instantiates a new executor repository. Process the actions in parallel.
      Parameters:
      maxWaiting - the max waiting
      maxRunning - the max running
      exceptions - the exceptions
      processedCount - the processed count
      objects - the objects
  • Method Details

    • exec

      public abstract void exec(O object) throws Exception
      Exec. Action to perform on the object.
      Parameters:
      object - the object
      Throws:
      Exception - the exception