Modifier and Type | Method and Description |
---|---|
Consumer<RequestLog> |
accessLogWriter()
Returns an access log writer.
|
ExecutorService |
blockingTaskExecutor()
Returns the
ExecutorService dedicated to the execution of blocking tasks or invocations. |
int |
defaultMaxHttp1ChunkSize()
Returns the default maximum length of each chunk in an HTTP/1 response content.
|
int |
defaultMaxHttp1HeaderSize()
Returns the default maximum length of all headers in an HTTP/1 response.
|
int |
defaultMaxHttp1InitialLineLength()
Returns the default maximum length of an HTTP/1 response initial line.
|
long |
defaultMaxRequestLength()
Returns the default maximum allowed length of the content decoded at the session layer.
|
long |
defaultRequestTimeoutMillis()
Returns the default timeout of a request.
|
VirtualHost |
defaultVirtualHost()
Returns the default
VirtualHost , which is used when no other VirtualHost s match the
host name of a client request. e.g. the "Host" header in HTTP or host name in TLS SNI extension |
VirtualHost |
findVirtualHost(String hostname)
Finds the
VirtualHost that matches the specified hostname . |
List<VirtualHost> |
findVirtualHosts(Service<?,?> service)
|
Duration |
gracefulShutdownQuietPeriod()
Returns the number of milliseconds to wait for active requests to go end before shutting down.
|
Duration |
gracefulShutdownTimeout()
Returns the number of milliseconds to wait before shutting down the server regardless of active
requests.
|
long |
idleTimeoutMillis()
Returns the idle timeout of a connection in milliseconds for keep-alive.
|
int |
maxNumConnections()
Returns the maximum allowed number of open connections.
|
io.micrometer.core.instrument.MeterRegistry |
meterRegistry()
Returns the
MeterRegistry that collects various stats. |
List<ServerPort> |
ports()
Returns the
ServerPort s to listen on. |
Server |
server()
Returns the
Server . |
List<ServiceConfig> |
serviceConfigs()
|
String |
serviceLoggerPrefix()
Returns the prefix of service logger's names.
|
boolean |
shutdownWorkerGroupOnStop()
Returns whether the worker
EventLoopGroup is shut down when the Server stops. |
String |
toString() |
List<VirtualHost> |
virtualHosts()
Returns the
List of available VirtualHost s. |
EventLoopGroup |
workerGroup()
Returns the worker
EventLoopGroup which is responsible for performing socket I/O and running
Service.serve(ServiceRequestContext, Request) . |
public List<ServerPort> ports()
ServerPort
s to listen on.Server.activePorts()
public VirtualHost defaultVirtualHost()
VirtualHost
, which is used when no other VirtualHost
s match the
host name of a client request. e.g. the "Host"
header in HTTP or host name in TLS SNI extensionvirtualHosts()
public List<VirtualHost> virtualHosts()
List
of available VirtualHost
s.List
of available VirtualHost
s where its last VirtualHost
is
defaultVirtualHost()
public VirtualHost findVirtualHost(String hostname)
VirtualHost
that matches the specified hostname
. If there's no match, the
defaultVirtualHost()
is returned.public List<VirtualHost> findVirtualHosts(Service<?,?> service)
List
of VirtualHost
s that contains the specified Service
. If there's
no match, an empty List
is returned. Note that this is potentially an expensive operation and
thus should not be used in a performance-sensitive path.public List<ServiceConfig> serviceConfigs()
public EventLoopGroup workerGroup()
EventLoopGroup
which is responsible for performing socket I/O and running
Service.serve(ServiceRequestContext, Request)
.public boolean shutdownWorkerGroupOnStop()
EventLoopGroup
is shut down when the Server
stops.public int maxNumConnections()
public long idleTimeoutMillis()
public long defaultRequestTimeoutMillis()
public long defaultMaxRequestLength()
public int defaultMaxHttp1InitialLineLength()
public int defaultMaxHttp1HeaderSize()
public int defaultMaxHttp1ChunkSize()
public Duration gracefulShutdownQuietPeriod()
0
means the server will stop right away without waiting.public Duration gracefulShutdownTimeout()
public ExecutorService blockingTaskExecutor()
ExecutorService
dedicated to the execution of blocking tasks or invocations.
Note that the ExecutorService
returned by this method does not set the
ServiceRequestContext
when executing a submitted task.
Use ServiceRequestContext.blockingTaskExecutor()
if possible.public io.micrometer.core.instrument.MeterRegistry meterRegistry()
MeterRegistry
that collects various stats.public String serviceLoggerPrefix()
public Consumer<RequestLog> accessLogWriter()
© Copyright 2015–2018 LINE Corporation. All rights reserved.