Interface ClientMessageListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onAbort​(java.lang.String originalMessage, boolean sentOnNetwork)
      Event handler that is called by Lightstreamer when any notifications of the processing outcome of the related message haven't been received yet and can no longer be received.
      void onDeny​(java.lang.String originalMessage, int code, java.lang.String error)
      Event handler that is called by Lightstreamer when the related message has been processed by the Server but the expected processing outcome could not be achieved for any reason.
      void onDiscarded​(java.lang.String originalMessage)
      Event handler that is called by Lightstreamer to notify that the related message has been discarded by the Server.
      void onError​(java.lang.String originalMessage)
      Event handler that is called by Lightstreamer when the related message has been processed by the Server but the processing has failed for any reason.
      void onProcessed​(java.lang.String originalMessage)
      Event handler that is called by Lightstreamer when the related message has been processed by the Server with success.
    • Method Detail

      • onAbort

        void onAbort​(@Nonnull
                     java.lang.String originalMessage,
                     boolean sentOnNetwork)
        Event handler that is called by Lightstreamer when any notifications of the processing outcome of the related message haven't been received yet and can no longer be received. Typically, this happens after the session has been closed. In this case, the client has no way of knowing the processing outcome and any outcome is possible.
        Parameters:
        originalMessage - the message to which this notification is related.
        sentOnNetwork - true if the message was sent on the network, false otherwise. Even if the flag is true, it is not possible to infer whether the message actually reached the Lightstreamer Server or not.
      • onDeny

        void onDeny​(@Nonnull
                    java.lang.String originalMessage,
                    int code,
                    @Nonnull
                    java.lang.String error)
        Event handler that is called by Lightstreamer when the related message has been processed by the Server but the expected processing outcome could not be achieved for any reason.
        Parameters:
        originalMessage - the message to which this notification is related.
        code - the error code sent by the Server. It can be one of the following:
        • <= 0 - the Metadata Adapter has refused the message; the code value is dependent on the specific Metadata Adapter implementation.
        error - the description of the error sent by the Server.
      • onDiscarded

        void onDiscarded​(@Nonnull
                         java.lang.String originalMessage)
        Event handler that is called by Lightstreamer to notify that the related message has been discarded by the Server. This means that the message has not reached the Metadata Adapter and the message next in the sequence is considered enabled for processing.
        Parameters:
        originalMessage - the message to which this notification is related.
      • onError

        void onError​(@Nonnull
                     java.lang.String originalMessage)
        Event handler that is called by Lightstreamer when the related message has been processed by the Server but the processing has failed for any reason. The level of completion of the processing by the Metadata Adapter cannot be determined.
        Parameters:
        originalMessage - the message to which this notification is related.
      • onProcessed

        void onProcessed​(@Nonnull
                         java.lang.String originalMessage)
        Event handler that is called by Lightstreamer when the related message has been processed by the Server with success.
        Parameters:
        originalMessage - the message to which this notification is related.