Class ExternalProcessExecutor.ProcessTask<T>
java.lang.Object
org.ojalgo.concurrent.ExternalProcessExecutor.ProcessTask<T>
- Enclosing class:
ExternalProcessExecutor
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object[]private final AtomicBooleanprivate final AtomicBooleanprivate Throwableprivate final Objectprivate final MethodDescriptorprivate final ProcessOptionsprivate Tprivate static final ThreadLocal<ExternalProcessExecutor.WorkerChannel> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) private static ExternalProcessExecutor.WorkerChannelensureWorker(ProcessOptions opts) get()booleanbooleanisDone()voidrun()private static booleansameOptions(ProcessOptions opt1, ProcessOptions opt2) (package private) ExternalProcessExecutor.ProcessTask<T> start(ExecutorService executor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
WORKER
-
myArguments
-
myCancelled
-
myDone
-
myError
-
myLock
-
myMethod
-
myOptions
-
myResult
-
myWorker
-
-
Constructor Details
-
ProcessTask
ProcessTask(MethodDescriptor spec, Object[] args, ProcessOptions opts)
-
-
Method Details
-
ensureWorker
private static ExternalProcessExecutor.WorkerChannel ensureWorker(ProcessOptions opts) throws Exception - Throws:
Exception
-
sameOptions
-
cancel
-
get
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
-
run
-
start
-