Class TaskProcessorAsync

java.lang.Object
com.dua3.utility.concurrent.TaskProcessorBase
com.dua3.utility.concurrent.TaskProcessorAsync
All Implemented Interfaces:
TaskProcessor

public class TaskProcessorAsync extends TaskProcessorBase
TaskProcessor implementation where tasks are executed asynchronous using an ExecutorService.

When an instance is created, the number of maximum parallel tasks can be passed in.

  • Constructor Details

    • TaskProcessorAsync

      public TaskProcessorAsync(String name, int maxThreads)
      Constructor.
      Parameters:
      name - this processor's name
      maxThreads - maximal number of tasks that are executed parallel
  • Method Details