public interface ChannelReceiver
Modifier and Type | Method and Description |
---|---|
default boolean |
handleReceivedChannelMessage(ChannelMessage currentMessage)
Handle a partially received buffers
|
boolean |
receiveMessage(MessageHeader header,
java.lang.Object object)
Receive a fully built message
|
boolean |
receiveSendInternally(int source,
int target,
int path,
int flags,
java.lang.Object message)
For partial receives the path and
|
default void |
sendCompleted(java.lang.Object message)
The send has been completed
todo change object to OutMessage
|
boolean receiveMessage(MessageHeader header, java.lang.Object object)
header
- the headerobject
- the built messageboolean receiveSendInternally(int source, int target, int path, int flags, java.lang.Object message)
source
- the sourcetarget
- target to be sentpath
- the path to be usedflags
- flagsmessage
- messagedefault boolean handleReceivedChannelMessage(ChannelMessage currentMessage)
currentMessage
- the messagedefault void sendCompleted(java.lang.Object message)
message
- the out message