Class ResultQueue


  • public final class ResultQueue
    extends Object
    A queue of incoming Result objects. The queue is updated by the GremlinResponseHandler until a response terminator is identified.
    Author:
    Stephen Mallette (http://stephen.genoprime.com)
    • Method Detail

      • add

        public void add​(Result result)
        Adds a Result to the queue which will be later read by the ResultSet.
        Parameters:
        result - a return value from the Traversal or script submitted for execution
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • isComplete

        public boolean isComplete()
      • markComplete

        public void markComplete()
      • markError

        public void markError​(Throwable throwable)