| 构造器和说明 |
|---|
LogCommand(Logger logger) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exceptionCaught(AbstractPipelineProcess<String,Object> process,
Context<String,Object> context,
CompletableFuture<?> future,
Throwable cause)
Gets called if a
Throwable was thrown. |
void |
onEvent(AbstractPipelineProcess<String,Object> process,
Context<String,Object> context,
CompletableFuture<?> future)
Execute a unit of processing work to be performed.
|
public LogCommand(Logger logger)
public void onEvent(AbstractPipelineProcess<String,Object> process, Context<String,Object> context, CompletableFuture<?> future)
Command
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.
public void exceptionCaught(AbstractPipelineProcess<String,Object> process, Context<String,Object> context, CompletableFuture<?> future, Throwable cause) throws PipelineException
CommandThrowable was thrown.exceptionCaught 在接口中 Command<String,Object>PipelineExceptionCopyright © 2021. All rights reserved.