Interface MessageHandler
-
- All Superinterfaces:
TransportHandler
- All Known Implementing Classes:
MessageRecvManager
public interface MessageHandler extends TransportHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgenOutputPath(MessageType messageType, int partition)Build a output path.voidhandle(MessageType messageType, int partition, NetworkBuffer buffer)Handle the buffer received.voidonFinished(ConnectionId connectionId)Notify finish-session completed on server-side.voidonStarted(ConnectionId connectionId)Notify start-session completed on server-side.-
Methods inherited from interface org.apache.hugegraph.computer.core.network.TransportHandler
exceptionCaught, onChannelActive, onChannelInactive
-
-
-
-
Method Detail
-
handle
void handle(MessageType messageType, int partition, NetworkBuffer buffer)
Handle the buffer received. There are two buffer list for a partition, one for sorting and one for receiving new buffers. It may block the caller if the receiving list reached threshold and the sorting list is sorting in process.
-
genOutputPath
java.lang.String genOutputPath(MessageType messageType, int partition)
Build a output path.
-
onStarted
void onStarted(ConnectionId connectionId)
Notify start-session completed on server-side.
-
onFinished
void onFinished(ConnectionId connectionId)
Notify finish-session completed on server-side.
-
-