Interface VisitorControlSession

    • Method Detail

      • ack

        void ack​(AckToken token)
        Acknowledges a response previously retrieved by the getNext method.
        Parameters:
        token - The ack token. You must get this from the visitor response returned by the getNext method.
      • abort

        void abort()
        Aborts the session.
      • getNext

        VisitorResponse getNext()
        Returns the next response of this session. This method returns immediately.
        Returns:
        the next response, or null if no response is ready at this time
      • getNext

        VisitorResponse getNext​(int timeoutMilliseconds)
                         throws java.lang.InterruptedException
        Returns the next response of this session. This will block until a response is ready or until the given timeout is reached
        Parameters:
        timeoutMilliseconds - the max time to wait for a response. If the number is 0, this will block without any timeout limit
        Returns:
        the next response, or null if no response becomes ready before the timeout expires
        Throws:
        java.lang.InterruptedException - if this thread is interrupted while waiting
      • destroy

        void destroy()
        Destroys this session and frees up any resources it has held.