Package org.infinispan.executors
Class ExecutorAllCompletionService
java.lang.Object
org.infinispan.executors.ExecutorAllCompletionService
- All Implemented Interfaces:
CompletionService<Void>
Exectues given tasks in provided executor.
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Constructor Details
-
ExecutorAllCompletionService
-
-
Method Details
-
submit
- Specified by:
submit
in interfaceCompletionService<Void>
-
submit
- Specified by:
submit
in interfaceCompletionService<Void>
-
isAllCompleted
public boolean isAllCompleted()- Returns:
- True if all currently scheduled tasks have already been completed, false otherwise;
-
getScheduledTasks
public long getScheduledTasks() -
getCompletedTasks
public long getCompletedTasks() -
waitUntilAllCompleted
public void waitUntilAllCompleted() -
isExceptionThrown
public boolean isExceptionThrown() -
getFirstException
-
take
- Specified by:
take
in interfaceCompletionService<Void>
- Throws:
InterruptedException
-
poll
- Specified by:
poll
in interfaceCompletionService<Void>
-
poll
- Specified by:
poll
in interfaceCompletionService<Void>
- Throws:
InterruptedException
-