Package cn.sliew.milky.common.chain
Class AbstractPipelineProcess<K,V>
- java.lang.Object
-
- cn.sliew.milky.common.chain.AbstractPipelineProcess<K,V>
-
- All Implemented Interfaces:
PipelineProcess<K,V>
public abstract class AbstractPipelineProcess<K,V> extends Object implements PipelineProcess<K,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Executorexecutor()Returns theExecutorwhich is used to execute an arbitrary task.PipelineProcess<K,V>fireEvent(Context<K,V> context, CompletableFuture<?> future)PipelineProcessfireExceptionCaught(Context<K,V> context, CompletableFuture<?> future, Throwable cause)Stringname()Pipelinepipeline()Return the assignedPipelineStringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cn.sliew.milky.common.chain.PipelineProcess
command
-
-
-
-
Method Detail
-
name
public String name()
Description copied from interface:PipelineProcessThe unique name of theCommand.The name was used when thenCommandwas added to thePipeline. This name can also be used to access the registeredCommandfrom thePipeline.- Specified by:
namein interfacePipelineProcess<K,V>
-
executor
public Executor executor()
Description copied from interface:PipelineProcessReturns theExecutorwhich is used to execute an arbitrary task.- Specified by:
executorin interfacePipelineProcess<K,V>
-
pipeline
public Pipeline pipeline()
Description copied from interface:PipelineProcessReturn the assignedPipeline- Specified by:
pipelinein interfacePipelineProcess<K,V>
-
fireEvent
public PipelineProcess<K,V> fireEvent(Context<K,V> context, CompletableFuture<?> future)
- Specified by:
fireEventin interfacePipelineProcess<K,V>
-
fireExceptionCaught
public PipelineProcess fireExceptionCaught(Context<K,V> context, CompletableFuture<?> future, Throwable cause)
Description copied from interface:PipelineProcessACommandreceived anThrowablein one of its operations.This will result in having the
Command.exceptionCaught(AbstractPipelineProcess, Context, java.util.concurrent.CompletableFuture, Throwable)method called of the nextCommandcontained in thePipeline.- Specified by:
fireExceptionCaughtin interfacePipelineProcess<K,V>
-
-