Class StreamRequestInfo

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class StreamRequestInfo
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Detail

      • DEFAULT_CONNECT_TIMEOUT

        public static final long DEFAULT_CONNECT_TIMEOUT
        Default connection timeout.
        See Also:
        Constant Field Values
      • DEFAULT_MIN_KEEPALIVE_PING_FREQUENCE_MILLIS

        public static final long DEFAULT_MIN_KEEPALIVE_PING_FREQUENCE_MILLIS
        Default smallest number of milliseconds between pings sent to the client. A value of 0 indicates not to send pings to the client. Zero is the default.
        See Also:
        Constant Field Values
      • facets

        protected boolean facets
    • Constructor Detail

      • StreamRequestInfo

        public StreamRequestInfo()
    • Method Detail

      • messageContainsStreamRequest

        public static boolean messageContainsStreamRequest​(PlatformMessage msg)
      • serializeIntoMessage

        public void serializeIntoMessage​(PlatformMessage msg)
      • getConnectTimeout

        public long getConnectTimeout()
        Get the connection timeout (milliseconds).

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

      • setConnectTimeout

        public void setConnectTimeout​(long value)
        Set the connection timeout (milliseconds).
      • getRoutingDepth

        public int getRoutingDepth()
        EXPERT: Should not be set by clients.

        This value is used when dispatching streamed requests across multiple engines and should not be set/used by the client.

      • isSSL

        public boolean isSSL()
      • setSSL

        public void setSSL​(boolean value)
      • setRoutingDepth

        public void setRoutingDepth​(int value)
        EXPERT: Should not be set by clients.

        This value is used when dispatching streamed requests across multiple engines and should not be set/used by the client.

      • getBufferSize

        public int getBufferSize()
      • setBufferSize

        public void setBufferSize​(int value)
      • getDocumentMode

        public StreamMode getDocumentMode()
        Get the mode for streaming documents.
      • setDocumentMode

        public void setDocumentMode​(StreamMode value)
        Get the mode for streaming documents.
      • setDocumentMode

        protected void setDocumentMode​(java.lang.String value)
      • isStreamDocuments

        public boolean isStreamDocuments()
      • isStreamDocumentIds

        public boolean isStreamDocumentIds()
      • isStreamFacets

        public boolean isStreamFacets()
      • setStreamFacets

        public void setStreamFacets​(boolean value)
      • getKeepAlivePingFrequency

        public long getKeepAlivePingFrequency()
        Returns:
        the keepAliveFrequency
      • setKeepAliveFrequency

        public void setKeepAliveFrequency​(long keepAliveFrequency)
        Parameters:
        keepAliveFrequency - the keepAliveFrequency to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • clone

        public StreamRequestInfo clone()
        Overrides:
        clone in class java.lang.Object