public interface Pipeline<OUT>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getRcvSlotSize()
Returns the number of available pipeline receive slots, The maximum value is Integer.MAX_VALUE
|
int |
getSndSlotSize()
Returns the number of pipeline send slots available, The maximum value is Integer.MAX_VALUE
|
default void |
init(PipeContext pipeContext)
when connected.
|
OUT[] |
rcvError(PipeContext pipeContext,
String pipeName,
Throwable rcvError)
Errors from the network layer.
|
OUT[] |
rcvLayer(PipeContext pipeContext,
String pipeName,
Object[] rcvData)
Processing received data
|
default void |
release(PipeContext pipeContext)
before close.
|
OUT[] |
sndError(PipeContext pipeContext,
String pipeName,
Throwable sndError)
Errors from the network layer.
|
OUT[] |
sndLayer(PipeContext pipeContext,
String pipeName,
Object[] sndData)
Trigger sending data
|
default void init(PipeContext pipeContext) throws Throwable
pipeContext - pipeContextThrowableint getRcvSlotSize()
int getSndSlotSize()
OUT[] rcvLayer(PipeContext pipeContext, String pipeName, Object[] rcvData) throws Throwable
OUT[] rcvError(PipeContext pipeContext, String pipeName, Throwable rcvError) throws Throwable
pipeContext - pipeContextrcvError - network error.ThrowableOUT[] sndLayer(PipeContext pipeContext, String pipeName, Object[] sndData) throws Throwable
OUT[] sndError(PipeContext pipeContext, String pipeName, Throwable sndError) throws Throwable
pipeContext - pipeContextsndError - network error.Throwabledefault void release(PipeContext pipeContext)
pipeContext - pipeContextCopyright © 2022–2024. All rights reserved.