public interface Command<K,V>
Command
处理并发等问题| 限定符和类型 | 方法和说明 |
|---|---|
void |
exceptionCaught(AbstractPipelineProcess<K,V> process,
Context<K,V> context,
CompletableFuture<?> future,
Throwable cause)
Gets called if a
Throwable was thrown. |
void |
onEvent(AbstractPipelineProcess<K,V> process,
Context<K,V> context,
CompletableFuture<?> future)
Execute a unit of processing work to be performed.
|
void onEvent(AbstractPipelineProcess<K,V> process, Context<K,V> context, CompletableFuture<?> future)
A command may either complete the required processing and just return or call async future,
or delegate remaining processing to the subsequent command
in the enclosing Pipeline by continue fire event.
process - The command context through whole Pipelinecontext - The Context to be processed by this Commandfuture - The result container and async listenerPipelineException - general purpose exception return to indicate abnormal terminationIllegalArgumentException - if context is nullvoid exceptionCaught(AbstractPipelineProcess<K,V> process, Context<K,V> context, CompletableFuture<?> future, Throwable cause) throws PipelineException
Throwable was thrown.Copyright © 2021. All rights reserved.