Package io.deephaven.server.jetty
Enum Class JettyConfig.WebsocketsSupport
java.lang.Object
java.lang.Enum<JettyConfig.WebsocketsSupport>
io.deephaven.server.jetty.JettyConfig.WebsocketsSupport
- All Implemented Interfaces:
Serializable
,Comparable<JettyConfig.WebsocketsSupport>
,java.lang.constant.Constable
- Enclosing class:
- JettyConfig
Values to indicate what kind of websocket support should be offered.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnables bothGRPC_WEBSOCKET
andGRPC_WEBSOCKET_MULTIPLEXED
, letting the client specify which to use via websocket subprotocols.Establish one websocket per grpc stream (including unary calls).Allows reuse of a single websocket for many grpc streams, even between services.Disable all websockets. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static JettyConfig.WebsocketsSupport[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Disable all websockets. Recommended for use with https, including behind a proxy that will offer its own https. -
GRPC_WEBSOCKET
Establish one websocket per grpc stream (including unary calls). Compatible with the websocket client provided by improbable-eng/grpc-web, but not recommended. -
GRPC_WEBSOCKET_MULTIPLEXED
Allows reuse of a single websocket for many grpc streams, even between services. This reduces latency by avoiding a fresh websocket handshake per rpc. -
BOTH
Enables bothGRPC_WEBSOCKET
andGRPC_WEBSOCKET_MULTIPLEXED
, letting the client specify which to use via websocket subprotocols.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-