Interface AcknowledgedMessagesExtension.Listener

    • Method Detail

      • onBatchSend

        default void onBatchSend​(ServerSession session,
                                 java.util.List<ServerMessage> messages,
                                 long batch)

        Callback method invoked when a batch of message is about to be sent to a client session.

        Parameters:
        session - the session
        messages - the messages to send, as an immutable list
        batch - the batch number
      • onBatchReceive

        default void onBatchReceive​(ServerSession session,
                                    long batch)

        Callback method invoked when a client session confirms it has received the given batch of messages.

        Parameters:
        session - the session
        batch - the batch number