@FunctionalInterface public interface PipeHandler<IN,OUT>
PipeHandler`s in opposite directions can to PipeLayerPipeLayer| 限定符和类型 | 方法和说明 |
|---|---|
default PipeStatus |
doError(PipeContext context,
Throwable e,
PipeExceptionHolder<IN,OUT> eh)
Gets called if a Throwable was thrown.
|
PipeStatus |
doHandler(PipeContext context,
PipeRcvQueue<IN> src,
PipeSndQueue<OUT> dst)
release protocol stack
|
default void |
initHandler(PipeContext pipeContext)
Initialize the protocol stack
|
default void |
releaseHandler(PipeContext pipeContext) |
default void initHandler(PipeContext pipeContext) throws Exception
ExceptionPipeStatus doHandler(PipeContext context, PipeRcvQueue<IN> src, PipeSndQueue<OUT> dst) throws IOException
IOExceptiondefault PipeStatus doError(PipeContext context, Throwable e, PipeExceptionHolder<IN,OUT> eh) throws Throwable
Throwabledefault void releaseHandler(PipeContext pipeContext)
Copyright © 2022–2024. All rights reserved.