Class ThreadedComputer<I,O>
- java.lang.Object
-
- org.processmining.plugins.inductiveVisualMiner.helperClasses.ThreadedComputer<I,O>
-
public class ThreadedComputer<I,O> extends java.lang.ObjectExecute a task asynchronously. Kill and discard the result of the previous tasks.- Author:
- sleemans
-
-
Constructor Summary
Constructors Constructor Description ThreadedComputer(java.util.concurrent.Executor executor, FunctionCancellable<I,O> computation, InputFunction<O> onComplete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelCurrentComputation()voidcompute(I input, IvMCanceller chainLinkCanceller)
-
-
-
Constructor Detail
-
ThreadedComputer
public ThreadedComputer(java.util.concurrent.Executor executor, FunctionCancellable<I,O> computation, InputFunction<O> onComplete)
-
-
Method Detail
-
cancelCurrentComputation
public void cancelCurrentComputation()
-
compute
public void compute(I input, IvMCanceller chainLinkCanceller)
-
-