Package org.aksw.commons.util.concurrent
Class CompletionTracker
java.lang.Object
org.aksw.commons.util.concurrent.CompletionTracker
- All Implemented Interfaces:
Executor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Executorprotected booleanprotected Map<Long,CompletableFuture<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidvoidstatic CompletionTrackerprotected booleanvoidshutdown()
-
Field Details
-
executor
-
counter
protected volatile long counter -
pending
-
isShutDown
protected volatile boolean isShutDown -
raisedExceptions
-
-
Constructor Details
-
CompletionTracker
-
-
Method Details
-
from
-
shutdown
public void shutdown() -
execute
-
isTerminated
protected boolean isTerminated() -
checkTerminationCondition
protected void checkTerminationCondition() -
getRaisedExceptions
-
awaitTermination
- Throws:
InterruptedException
-