Package com.wowza.wms.websocket.model
Class WebSocketContext
- Object
- 
- com.wowza.wms.websocket.model.WebSocketContext
 
- 
 public class WebSocketContext extends Object
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_IDLEFREQUENCYstatic booleanDEFAULT_MASKOUTGOINGMESSAGESstatic intDEFAULT_MAXIMUMPENDINGWRITEBYTESstatic longDEFAULT_MAXMESSAGESIZEstatic longDEFAULT_PACKETFRAGMENTATIONSIZEstatic intDEFAULT_PINGTIMEOUTstatic intDEFAULT_VALIDATIONFREQUENCY
 - 
Constructor SummaryConstructors Constructor Description WebSocketContext()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIdleFrequency()Get time in milliseconds between idle eventslonggetMaximumMessageSize()Get the maximum WebSocket message size for a single message (0 = no limit)intgetMaximumPendingWriteBytes()Get the number of bytes that can be pending waiting to be sent before messages are no longer send (0 turns off this feature)longgetPacketFragmentationSize()Not being used currentlyintgetPingTimeout()Get the timeout (milliseconds) that we wait for a response (pong) to a ping messageintgetValidationFrequency()Get time in milliseconds between validation messages (ping from server to client).booleanisMaskOutgoingMessages()Should outgoing messages be masked (many browsers do not support masked outgoing messages)voidsetIdleFrequency(int idleFrequency)Set time in milliseconds between idle eventsvoidsetMaskOutgoingMessages(boolean maskOutgoingMessages)Should outgoing messages be masked (many browsers do not support masked outgoing messages)voidsetMaximumMessageSize(long maxMessageSize)Set the maximum WebSocket message size for a single message (0 = no limit)voidsetMaximumPendingWriteBytes(int maximumPendingWriteBytes)Set the number of bytes that can be pending waiting to be sent before messages are no longer send (0 turns off this feature)voidsetPacketFragmentationSize(long packetFragmentationSize)Not being used currentlyvoidsetPingTimeout(int pingTimeout)Set the timeout (milliseconds) that we wait for a response (pong) to a ping messagevoidsetValidationFrequency(int validationFrequency)Set time in milliseconds between validation messages (ping from server to client).
 
- 
- 
- 
Field Detail- 
DEFAULT_MAXMESSAGESIZEpublic static final long DEFAULT_MAXMESSAGESIZE - See Also:
- Constant Field Values
 
 - 
DEFAULT_PACKETFRAGMENTATIONSIZEpublic static final long DEFAULT_PACKETFRAGMENTATIONSIZE - See Also:
- Constant Field Values
 
 - 
DEFAULT_IDLEFREQUENCYpublic static final int DEFAULT_IDLEFREQUENCY - See Also:
- Constant Field Values
 
 - 
DEFAULT_VALIDATIONFREQUENCYpublic static final int DEFAULT_VALIDATIONFREQUENCY - See Also:
- Constant Field Values
 
 - 
DEFAULT_MASKOUTGOINGMESSAGESpublic static final boolean DEFAULT_MASKOUTGOINGMESSAGES - See Also:
- Constant Field Values
 
 - 
DEFAULT_MAXIMUMPENDINGWRITEBYTESpublic static final int DEFAULT_MAXIMUMPENDINGWRITEBYTES - See Also:
- Constant Field Values
 
 - 
DEFAULT_PINGTIMEOUTpublic static final int DEFAULT_PINGTIMEOUT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getMaximumMessageSizepublic long getMaximumMessageSize() Get the maximum WebSocket message size for a single message (0 = no limit)- Returns:
- maximum WebSocket message size
 
 - 
setMaximumMessageSizepublic void setMaximumMessageSize(long maxMessageSize) Set the maximum WebSocket message size for a single message (0 = no limit)- Parameters:
- maxMessageSize- maximum WebSocket message size
 
 - 
isMaskOutgoingMessagespublic boolean isMaskOutgoingMessages() Should outgoing messages be masked (many browsers do not support masked outgoing messages)- Returns:
- true, if messages are masked
 
 - 
setMaskOutgoingMessagespublic void setMaskOutgoingMessages(boolean maskOutgoingMessages) Should outgoing messages be masked (many browsers do not support masked outgoing messages)- Parameters:
- maskOutgoingMessages- true, if messages are masked
 
 - 
getIdleFrequencypublic int getIdleFrequency() Get time in milliseconds between idle events- Returns:
- idle time (milliseconds)
 
 - 
setIdleFrequencypublic void setIdleFrequency(int idleFrequency) Set time in milliseconds between idle events- Parameters:
- idleFrequency- idle time (milliseconds)
 
 - 
getPacketFragmentationSizepublic long getPacketFragmentationSize() Not being used currently- Returns:
- not being used
 
 - 
setPacketFragmentationSizepublic void setPacketFragmentationSize(long packetFragmentationSize) Not being used currently- Parameters:
- packetFragmentationSize- not being used
 
 - 
getValidationFrequencypublic int getValidationFrequency() Get time in milliseconds between validation messages (ping from server to client). Value of zero turns off validation.- Returns:
- validation time (milliseconds)
 
 - 
setValidationFrequencypublic void setValidationFrequency(int validationFrequency) Set time in milliseconds between validation messages (ping from server to client). Value of zero turns off validation.- Parameters:
- validationFrequency- validation time (milliseconds)
 
 - 
getMaximumPendingWriteBytespublic int getMaximumPendingWriteBytes() Get the number of bytes that can be pending waiting to be sent before messages are no longer send (0 turns off this feature)- Returns:
- number of bytes that can be pending waiting
 
 - 
setMaximumPendingWriteBytespublic void setMaximumPendingWriteBytes(int maximumPendingWriteBytes) Set the number of bytes that can be pending waiting to be sent before messages are no longer send (0 turns off this feature)- Parameters:
- maximumPendingWriteBytes- number of bytes that can be pending waiting
 
 - 
getPingTimeoutpublic int getPingTimeout() Get the timeout (milliseconds) that we wait for a response (pong) to a ping message- Returns:
- timeout (milliseconds)
 
 - 
setPingTimeoutpublic void setPingTimeout(int pingTimeout) Set the timeout (milliseconds) that we wait for a response (pong) to a ping message- Parameters:
- pingTimeout- timeout (milliseconds)
 
 
- 
 
-