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 interfaceProcessContext.ThrowableRunnablestatic interfaceProcessContext.ThrowableSupplier<T>
-
Field Summary
-
Fields inherited from class co.ecg.alpaca.toolkit.AbstractContext
parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessContext(GenericProcess process)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseExecutor()ProcessContextgetChildContext()voidjoin()voidput(ProcessContext.ThrowableRunnable runnable)<T> CompletableFuture<T>put(ProcessContext.ThrowableSupplier<T> runnable)voidsetExecutorServiceByName(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:
getChildContextin 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:
joinin classAbstractContext<ProcessContext>
-
-