Package com.attivio.client.streaming
Class StreamRequestInfo
- java.lang.Object
-
- com.attivio.client.streaming.StreamRequestInfo
-
- All Implemented Interfaces:
java.lang.Cloneable
public class StreamRequestInfo extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BUFFER_SIZEstatic longDEFAULT_CONNECT_TIMEOUTDefault connection timeout.static longDEFAULT_MIN_KEEPALIVE_PING_FREQUENCE_MILLISDefault smallest number of milliseconds between pings sent to the client.protected StreamModedocumentModeprotected booleanfacetsstatic java.lang.StringPROP_PREFIX
-
Constructor Summary
Constructors Constructor Description StreamRequestInfo()StreamRequestInfo(PlatformMessage msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StreamRequestInfoclone()booleanequals(java.lang.Object obj)intgetBufferSize()longgetConnectTimeout()Get the connection timeout (milliseconds).StreamModegetDocumentMode()Get the mode for streaming documents.longgetKeepAlivePingFrequency()intgetRoutingDepth()EXPERT: Should not be set by clients.inthashCode()booleanisSSL()booleanisStreamDocumentIds()booleanisStreamDocuments()booleanisStreamFacets()static booleanmessageContainsStreamRequest(PlatformMessage msg)voidserializeIntoMessage(PlatformMessage msg)voidsetBufferSize(int value)voidsetConnectTimeout(long value)Set the connection timeout (milliseconds).voidsetDocumentMode(StreamMode value)Get the mode for streaming documents.protected voidsetDocumentMode(java.lang.String value)voidsetKeepAliveFrequency(long keepAliveFrequency)voidsetRoutingDepth(int value)EXPERT: Should not be set by clients.voidsetSSL(boolean value)voidsetStreamDocumentIds(boolean value)Deprecated.voidsetStreamDocuments(boolean value)Deprecated.voidsetStreamFacets(boolean value)
-
-
-
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
-
PROP_PREFIX
public static final java.lang.String PROP_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
documentMode
protected StreamMode documentMode
-
facets
protected boolean facets
-
-
Constructor Detail
-
StreamRequestInfo
public StreamRequestInfo()
-
StreamRequestInfo
public StreamRequestInfo(PlatformMessage msg)
-
-
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()
-
setStreamDocumentIds
@Deprecated public void setStreamDocumentIds(boolean value)
Deprecated.
-
setStreamDocuments
@Deprecated public void setStreamDocuments(boolean value)
Deprecated.
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
clone
public StreamRequestInfo clone()
- Overrides:
clonein classjava.lang.Object
-
-