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 |
---|
BridgeOptions()
Default constructor
|
BridgeOptions(BridgeOptions other)
Copy constructor
|
BridgeOptions(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
BridgeOptions |
addInboundPermitted(PermittedOptions permitted) |
BridgeOptions |
addOutboundPermitted(PermittedOptions permitted) |
List<PermittedOptions> |
getInboundPermitteds() |
int |
getMaxAddressLength() |
int |
getMaxHandlersPerSocket() |
List<PermittedOptions> |
getOutboundPermitteds() |
long |
getPingTimeout() |
long |
getReplyTimeout() |
void |
setInboundPermitted(List<PermittedOptions> inboundPermitted) |
BridgeOptions |
setMaxAddressLength(int maxAddressLength) |
BridgeOptions |
setMaxHandlersPerSocket(int maxHandlersPerSocket) |
void |
setOutboundPermitted(List<PermittedOptions> outboundPermitted) |
BridgeOptions |
setPingTimeout(long pingTimeout) |
BridgeOptions |
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 BridgeOptions(BridgeOptions other)
other
- the options to copypublic BridgeOptions()
public BridgeOptions(JsonObject json)
json
- the JSONpublic int getMaxAddressLength()
public BridgeOptions setMaxAddressLength(int maxAddressLength)
public int getMaxHandlersPerSocket()
public BridgeOptions setMaxHandlersPerSocket(int maxHandlersPerSocket)
public long getPingTimeout()
public BridgeOptions setPingTimeout(long pingTimeout)
public long getReplyTimeout()
public BridgeOptions setReplyTimeout(long replyTimeout)
public BridgeOptions addInboundPermitted(PermittedOptions permitted)
public List<PermittedOptions> getInboundPermitteds()
public void setInboundPermitted(List<PermittedOptions> inboundPermitted)
public BridgeOptions addOutboundPermitted(PermittedOptions permitted)
public List<PermittedOptions> getOutboundPermitteds()
public void setOutboundPermitted(List<PermittedOptions> outboundPermitted)
Copyright © 2020 Eclipse. All rights reserved.