Interface AsyncResultsetCallback

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onComplete()
      Invoked when the fetching of the entire result set has been completed.
      void onError​(Exception exception)
      Invoked in case of an error in the execution or fetching of the result set.
      boolean onNext​(Result result)
      Invoked per single result in the result set.
      void onStart​(ResultSet resultset)
      Invoked as soon as the command has been executed.
    • Method Detail

      • onStart

        void onStart​(ResultSet resultset)
        Invoked as soon as the command has been executed.
        Parameters:
        resultset - result set to fetch
      • onNext

        boolean onNext​(Result result)
        Invoked per single result in the result set.
        Returns:
        true to continue fetching otherwise false. If false is returned, the fetching stops and the onComplete() method is never invoked.
      • onComplete

        void onComplete()
        Invoked when the fetching of the entire result set has been completed.
      • onError

        void onError​(Exception exception)
        Invoked in case of an error in the execution or fetching of the result set.
        Parameters:
        exception - The exception caught