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
|
void |
onActive(PipeContext pipeContext)
when connected.
|
void |
onClose(PipeContext pipeContext)
before close.
|
void |
onInit(PipeContext pipeContext)
when init.
|
OUT[] |
onRcvError(PipeContext pipeContext,
String pipeName,
Throwable rcvError)
Errors from the network layer.
|
OUT[] |
onRcvMessage(PipeContext pipeContext,
String pipeName,
Object[] rcvData)
Processing received data
|
OUT[] |
onSndError(PipeContext pipeContext,
String pipeName,
Throwable sndError)
Errors from the network layer.
|
OUT[] |
onSndMessage(PipeContext pipeContext,
String pipeName,
Object[] sndData)
Trigger sending data
|
int getRcvSlotSize()
int getSndSlotSize()
void onInit(PipeContext pipeContext) throws Throwable
pipeContext - pipeContextThrowablevoid onActive(PipeContext pipeContext) throws Throwable
pipeContext - pipeContextThrowableOUT[] onRcvMessage(PipeContext pipeContext, String pipeName, Object[] rcvData) throws Throwable
OUT[] onRcvError(PipeContext pipeContext, String pipeName, Throwable rcvError) throws Throwable
pipeContext - pipeContextrcvError - network error.ThrowableOUT[] onSndMessage(PipeContext pipeContext, String pipeName, Object[] sndData) throws Throwable
OUT[] onSndError(PipeContext pipeContext, String pipeName, Throwable sndError) throws Throwable
pipeContext - pipeContextsndError - network error.Throwablevoid onClose(PipeContext pipeContext)
pipeContext - pipeContextCopyright © 2022–2024. All rights reserved.