Class StreamingQueryRequest


  • public class StreamingQueryRequest
    extends java.lang.Object
    Models the basic properties of a query request that is meant to provide streaming results.
    • Method Detail

      • getConnectTimeout

        public long getConnectTimeout()
        Registers the connection timeout (milliseconds) to be used by this StreamingResponseClientBuilder when building a StreamingQueryResponse;

        The client must connect to the stream within this timeout or the query will fail.

        The default is 60,000 milliseconds or 1 minute.

      • getBufferSize

        public int getBufferSize()
        Registers the buffer size (in bytes) to be used by this StreamingResponseClientBuilder when building a StreamingQueryResponse;

        The default is 16,384 bytes or 16 kilobytes.

      • isStreamFacets

        public boolean isStreamFacets()
        Registers a flag indicating whether or not to stream facets. This flag is used by this StreamingResponseClientBuilder when building a StreamingQueryResponse;

        The default is not to stream facets.

      • getKeepAlivePingFrequency

        public long getKeepAlivePingFrequency()
        Registers a time (milliseconds) to be used to be used by this StreamingResponseClientBuilder when building a StreamingQueryResponse;

        This is the time between keep alive ping attempts.

        A value of 0 indicates not to attempt to keep the connection alive. This is the default.

      • setConnectTimeout

        public void setConnectTimeout​(long connectTimeout)
      • setBufferSize

        public void setBufferSize​(int bufferSize)
      • setStreamFacets

        public void setStreamFacets​(boolean streamFacets)
      • setKeepAlivePingFrequency

        public void setKeepAlivePingFrequency​(long keepAlivePingFrequency)
      • setQueryRequest

        public void setQueryRequest​(QueryRequest queryRequest)