Package co.ecg.alpaca.toolkit.task
Class ProcessContext
- java.lang.Object
-
- co.ecg.alpaca.toolkit.AbstractContext<ProcessContext>
-
- co.ecg.alpaca.toolkit.task.ProcessContext
-
public class ProcessContext extends AbstractContext<ProcessContext>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ProcessContext.ThrowableRunnable
static interface
ProcessContext.ThrowableSupplier<T>
-
Field Summary
-
Fields inherited from class co.ecg.alpaca.toolkit.AbstractContext
parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessContext(GenericProcess process)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeExecutor()
ProcessContext
getChildContext()
void
join()
void
put(ProcessContext.ThrowableRunnable runnable)
<T> CompletableFuture<T>
put(ProcessContext.ThrowableSupplier<T> runnable)
void
setExecutorServiceByName(String executorName)
-
Methods inherited from class co.ecg.alpaca.toolkit.AbstractContext
addChild, getAllInheritedFutures, getFutures, getNumberChildren, getOutstandingFutures, getOutstandingInheritedFutures, removeChild, toString
-
-
-
-
Constructor Detail
-
ProcessContext
protected ProcessContext(GenericProcess process)
-
-
Method Detail
-
getChildContext
public ProcessContext getChildContext()
- Specified by:
getChildContext
in classAbstractContext<ProcessContext>
-
setExecutorServiceByName
public void setExecutorServiceByName(String executorName)
-
put
public <T> CompletableFuture<T> put(ProcessContext.ThrowableSupplier<T> runnable)
-
put
public void put(ProcessContext.ThrowableRunnable runnable)
-
closeExecutor
public void closeExecutor()
-
join
public void join()
- Overrides:
join
in classAbstractContext<ProcessContext>
-
-