public class SockJSBridgeOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_ADDRESS_LENGTH
Default value for max address length = 200
|
static int |
DEFAULT_MAX_HANDLERS_PER_SOCKET
Default value for max handlers per socket = 1000
|
static long |
DEFAULT_PING_TIMEOUT
Default value for ping timeout = 10000 ms
|
static long |
DEFAULT_REPLY_TIMEOUT
Default value for reply timeout = 30000
|
Constructor and Description |
---|
SockJSBridgeOptions()
Default constructor
|
SockJSBridgeOptions(JsonObject json)
Constructor from JSON
|
SockJSBridgeOptions(SockJSBridgeOptions other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
SockJSBridgeOptions |
addInboundPermitted(PermittedOptions permitted) |
SockJSBridgeOptions |
addOutboundPermitted(PermittedOptions permitted) |
List<PermittedOptions> |
getInboundPermitteds() |
int |
getMaxAddressLength() |
int |
getMaxHandlersPerSocket() |
List<PermittedOptions> |
getOutboundPermitteds() |
long |
getPingTimeout() |
long |
getReplyTimeout() |
void |
setInboundPermitted(List<PermittedOptions> inboundPermitted) |
SockJSBridgeOptions |
setMaxAddressLength(int maxAddressLength) |
SockJSBridgeOptions |
setMaxHandlersPerSocket(int maxHandlersPerSocket) |
void |
setOutboundPermitted(List<PermittedOptions> outboundPermitted) |
SockJSBridgeOptions |
setPingTimeout(long pingTimeout) |
SockJSBridgeOptions |
setReplyTimeout(long replyTimeout) |
public static final int DEFAULT_MAX_ADDRESS_LENGTH
public static final int DEFAULT_MAX_HANDLERS_PER_SOCKET
public static final long DEFAULT_PING_TIMEOUT
public static final long DEFAULT_REPLY_TIMEOUT
public SockJSBridgeOptions(SockJSBridgeOptions other)
other
- the options to copypublic SockJSBridgeOptions()
public SockJSBridgeOptions(JsonObject json)
json
- the JSONpublic int getMaxAddressLength()
public SockJSBridgeOptions setMaxAddressLength(int maxAddressLength)
public int getMaxHandlersPerSocket()
public SockJSBridgeOptions setMaxHandlersPerSocket(int maxHandlersPerSocket)
public long getPingTimeout()
public SockJSBridgeOptions setPingTimeout(long pingTimeout)
public long getReplyTimeout()
public SockJSBridgeOptions setReplyTimeout(long replyTimeout)
public SockJSBridgeOptions addInboundPermitted(PermittedOptions permitted)
public List<PermittedOptions> getInboundPermitteds()
public void setInboundPermitted(List<PermittedOptions> inboundPermitted)
public SockJSBridgeOptions addOutboundPermitted(PermittedOptions permitted)
public List<PermittedOptions> getOutboundPermitteds()
public void setOutboundPermitted(List<PermittedOptions> outboundPermitted)
Copyright © 2023 Eclipse. All rights reserved.