Class ExecutorServiceTaskScheduler
java.lang.Object
nl.knaw.dans.lib.util.pollingtaskexec.ExecutorServiceTaskScheduler
- All Implemented Interfaces:
TaskScheduler
A task scheduler implementation that schedules tasks for execution using an
ExecutorService. This class allows for tasks to be executed asynchronously using the provided executor service.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExecutorServiceTaskScheduler
public ExecutorServiceTaskScheduler()
-
-
Method Details
-
schedule
Description copied from interface:TaskSchedulerSchedules the task for execution.- Specified by:
schedulein interfaceTaskScheduler- Parameters:
task- the task to schedule
-