public class SockJSBridgeOptions extends BridgeOptions
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
|
getInboundPermitteds, getOutboundPermitteds
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)
BridgeOptions
BridgeOptions
.addInboundPermitted
in class BridgeOptions
permitted
- the inbound permittedBridgeOptions
.public SockJSBridgeOptions setInboundPermitteds(List<PermittedOptions> inboundPermitted)
BridgeOptions
setInboundPermitteds
in class BridgeOptions
inboundPermitted
- the list to use, must not be null
. This method use the direct list reference
(and doesn't create a copy).BridgeOptions
.public SockJSBridgeOptions addOutboundPermitted(PermittedOptions permitted)
BridgeOptions
BridgeOptions
.addOutboundPermitted
in class BridgeOptions
permitted
- the outbound permittedBridgeOptions
.public SockJSBridgeOptions setOutboundPermitteds(List<PermittedOptions> outboundPermitted)
BridgeOptions
setOutboundPermitteds
in class BridgeOptions
outboundPermitted
- the list to use, must not be null
. This method use the direct list reference
(and doesn't create a copy).BridgeOptions
.public JsonObject toJson()
BridgeOptions
BridgeOptions
to JSON. This method uses the generated converter.toJson
in class BridgeOptions
Copyright © 2021 Eclipse. All rights reserved.