Interface QueryResult

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancel()
      Cancels the query.
      java.lang.Exception getError()  
      java.util.List<PathInfo> getPathInfo()
      Information about the paths queried.
      boolean isErrored()  
      void onData​(java.util.function.Consumer<DataPoint> consumer, java.util.function.BiConsumer<java.lang.Boolean,​java.lang.Throwable> onComplete)  
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • getPathInfo

        java.util.List<PathInfo> getPathInfo()
        Information about the paths queried. Corresponds 1-to-1 with the paths passed in when the query was executed.
      • isErrored

        boolean isErrored()
      • getError

        java.lang.Exception getError()
      • onData

        void onData​(java.util.function.Consumer<DataPoint> consumer,
                    java.util.function.BiConsumer<java.lang.Boolean,​java.lang.Throwable> onComplete)
      • cancel

        void cancel()
        Cancels the query. Will call onComplete immediately, and will no longer process values. If takeNext() is blocked, it will throw an interrupted exception.