public class WebSocketConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
maxBinaryMessage
Maximal size of accepted binary messages
|
private int |
maxIdleTime
Maximal idle time
|
private int |
maxTextMessage
Maximal size of accepted text messages
|
Constructor and Description |
---|
WebSocketConfig(BootstrapConfig config)
Create an immutable instance of the websocket configuration parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxBinaryMessage()
Returns the maximal size of accepted binary messages.
|
int |
getMaxIdleTime()
Returns the maximal idle time.
|
int |
getMaxTextMessage()
Return the maximal size of accepted text messages.
|
private final int maxTextMessage
private final int maxIdleTime
private final int maxBinaryMessage
public WebSocketConfig(BootstrapConfig config)
config
- The server provided bootstrap configuration.public int getMaxTextMessage()
public int getMaxIdleTime()
public int getMaxBinaryMessage()