Interface MessageHandler

    • 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.