Package org.infinispan.tasks.spi
Interface NonBlockingTaskEngine
- All Superinterfaces:
TaskEngine
Extends the
TaskEngine interface to include additional methods allowing a task
engine to have non blocking methods where as the mirrored methods on TaskEngine
would block the invoking thread.-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<List<org.infinispan.tasks.Task>>Returns the list of tasks managed by this engine.handlesAsync(String taskName) Returns whether this task engine knows about a specified named task.Methods inherited from interface org.infinispan.tasks.spi.TaskEngine
getName, getTasks, handles, runTask
-
Method Details
-
getTasksAsync
CompletionStage<List<org.infinispan.tasks.Task>> getTasksAsync()Returns the list of tasks managed by this engine. This method will return immediately and the returned stage will now or some point in the future be completed with the list of tasks or an exception if something went wrong.- Returns:
- stage containing the list of tasks when it is retrieved or an error
-
handlesAsync
Returns whether this task engine knows about a specified named task. This method will return immediately and the returned stage will now or some point in the future be completed with a Boolean whether this engine can perform this task or an exception if something went wrong- Parameters:
taskName- the task to check- Returns:
- stage containing if the task can be handled or an error
-