Package io.deephaven.server.netty
Class NettyConfig
java.lang.Object
io.deephaven.server.netty.NettyConfig
- All Implemented Interfaces:
ServerConfig
The netty server configuration.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from interface io.deephaven.server.config.ServerConfig
DEFAULT_MAX_INBOUND_MESSAGE_SIZE_MiB, DEFAULT_SCHEDULER_POOL_SIZE, DEFAULT_SHUTDOWN_TIMEOUT_MILLIS, GRPC_MAX_INBOUND_MESSAGE_SIZE, HTTP_HOST, HTTP_PORT, HTTP_SESSION_DURATION_MS, HTTP_TARGET_URL, PROXY_HINT, SCHEDULER_POOL_SIZE, SHUTDOWN_TIMEOUT_MILLIS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NettyConfig.Builder
builder()
static NettyConfig.Builder
buildFromConfig
(Configuration config) Parses the configuration values into the appropriate builder methods viaServerConfig.buildFromConfig(ServerConfig.Builder, Configuration)
.static NettyConfig
The default configuration is suitable for local development purposes.int
port()
The port.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.server.config.ServerConfig
host, maxInboundMessageSize, outboundSsl, proxyHint, schedulerPoolSize, shutdownTimeout, ssl, targetUrl, targetUrlOrDefault, tokenExpire
-
Field Details
-
DEFAULT_SSL_PORT
public static final int DEFAULT_SSL_PORT- See Also:
-
DEFAULT_PLAINTEXT_PORT
public static final int DEFAULT_PLAINTEXT_PORT- See Also:
-
-
Constructor Details
-
NettyConfig
public NettyConfig()
-
-
Method Details
-
builder
-
defaultConfig
The default configuration is suitable for local development purposes. It inherits all of the defaults, which are documented on each individual method. In brief, the default server starts up on all interfaces with plaintext port 8080, a scheduler pool size of 4, and a max inbound message size of 100 MiB. -
buildFromConfig
Parses the configuration values into the appropriate builder methods viaServerConfig.buildFromConfig(ServerConfig.Builder, Configuration)
.- Parameters:
config
- the config- Returns:
- the builder
-
port
@Default public int port()- Specified by:
port
in interfaceServerConfig
-