Class SockJSBridgeOptions
java.lang.Object
io.vertx.ext.bridge.BridgeOptions
io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions
Options for configuring the event bus bridge.
- Author:
- Tim Fox
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value for max address length = 200static final intDefault value for max handlers per socket = 1000static final longDefault value for ping timeout = 10000 msstatic final longDefault value for reply timeout = 30000 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructor from JSONCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionaddInboundPermitted(PermittedOptions permitted) Adds an inbound permitted option to the currentBridgeOptions.addOutboundPermitted(PermittedOptions permitted) Adds an outbound permitted option to the currentBridgeOptions.intintlonglongsetInboundPermitteds(List<PermittedOptions> inboundPermitted) Sets the list of inbound permitted options.setMaxAddressLength(int maxAddressLength) setMaxHandlersPerSocket(int maxHandlersPerSocket) setOutboundPermitteds(List<PermittedOptions> outboundPermitted) Sets the list of outbound permitted options.setPingTimeout(long pingTimeout) setReplyTimeout(long replyTimeout) toJson()Serializes the currentBridgeOptionsto JSON.Methods inherited from class BridgeOptions
getInboundPermitteds, getOutboundPermitteds
-
Field Details
-
DEFAULT_MAX_ADDRESS_LENGTH
public static final int DEFAULT_MAX_ADDRESS_LENGTHDefault value for max address length = 200- See Also:
-
DEFAULT_MAX_HANDLERS_PER_SOCKET
public static final int DEFAULT_MAX_HANDLERS_PER_SOCKETDefault value for max handlers per socket = 1000- See Also:
-
DEFAULT_PING_TIMEOUT
public static final long DEFAULT_PING_TIMEOUTDefault value for ping timeout = 10000 ms- See Also:
-
DEFAULT_REPLY_TIMEOUT
public static final long DEFAULT_REPLY_TIMEOUTDefault value for reply timeout = 30000- See Also:
-
-
Constructor Details
-
SockJSBridgeOptions
Copy constructor- Parameters:
other- the options to copy
-
SockJSBridgeOptions
public SockJSBridgeOptions()Default constructor -
SockJSBridgeOptions
-
-
Method Details
-
getMaxAddressLength
public int getMaxAddressLength() -
setMaxAddressLength
-
getMaxHandlersPerSocket
public int getMaxHandlersPerSocket() -
setMaxHandlersPerSocket
-
getPingTimeout
public long getPingTimeout() -
setPingTimeout
-
getReplyTimeout
public long getReplyTimeout() -
setReplyTimeout
-
addInboundPermitted
Description copied from class:BridgeOptionsAdds an inbound permitted option to the currentBridgeOptions.- Overrides:
addInboundPermittedin classBridgeOptions- Parameters:
permitted- the inbound permitted- Returns:
- the current
BridgeOptions.
-
setInboundPermitteds
Description copied from class:BridgeOptionsSets the list of inbound permitted options.- Overrides:
setInboundPermittedsin classBridgeOptions- Parameters:
inboundPermitted- the list to use, must not be}. This method use the direct list reference (and doesn't create a copy).invalid @link
{@link null- Returns:
- the current
BridgeOptions.
-
addOutboundPermitted
Description copied from class:BridgeOptionsAdds an outbound permitted option to the currentBridgeOptions.- Overrides:
addOutboundPermittedin classBridgeOptions- Parameters:
permitted- the outbound permitted- Returns:
- the current
BridgeOptions.
-
setOutboundPermitteds
Description copied from class:BridgeOptionsSets the list of outbound permitted options.- Overrides:
setOutboundPermittedsin classBridgeOptions- Parameters:
outboundPermitted- the list to use, must not be}. This method use the direct list reference (and doesn't create a copy).invalid @link
{@link null- Returns:
- the current
BridgeOptions.
-
toJson
Description copied from class:BridgeOptionsSerializes the currentBridgeOptionsto JSON. This method uses the generated converter.- Overrides:
toJsonin classBridgeOptions- Returns:
- the serialized object
-