Package cn.sliew.milky.common.chain
Interface PipelineProcess<K,V>
-
- All Known Implementing Classes:
AbstractPipelineProcess
public interface PipelineProcess<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Command<K,V>command()TheCommandthat is bound thisPipelineProcess.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()Pipeline<K,V>pipeline()Return the assignedPipeline
-
-
-
Method Detail
-
name
String name()
-
command
Command<K,V> command()
TheCommandthat is bound thisPipelineProcess.
-
fireEvent
PipelineProcess<K,V> fireEvent(Context<K,V> context, CompletableFuture<?> future)
-
fireExceptionCaught
PipelineProcess fireExceptionCaught(Context<K,V> context, CompletableFuture<?> future, Throwable cause)
ACommandreceived 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.
-
-