Interface QueryHandler.UpdateHandler

  • Enclosing interface:
    QueryHandler

    public static interface QueryHandler.UpdateHandler
    Interface describing a stream of updates to a subscription query.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void complete()
      Indicates the subscription query has completed, meaning no more updates are to be expected.
      void sendUpdate​(QueryUpdate queryUpdate)
      Send the given queryUpdate in response to the subscription query this handler was provided for.
    • Method Detail

      • sendUpdate

        void sendUpdate​(QueryUpdate queryUpdate)
        Send the given queryUpdate in response to the subscription query this handler was provided for.
        Parameters:
        queryUpdate - the update to send
      • complete

        void complete()
        Indicates the subscription query has completed, meaning no more updates are to be expected. The component sending the subscription query is requested to close the subscription.