public class GrizzlyServerManager extends Object implements HttpServerManager
| Modifier and Type | Field and Description |
|---|---|
static String |
MAXIMUM_HEADER_SECTION_SIZE_PROPERTY_KEY |
| Constructor and Description |
|---|
GrizzlyServerManager(String threadNamePrefix,
HttpListenerRegistry httpListenerRegistry,
TcpServerSocketProperties serverSocketProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsServerFor(ServerAddress serverAddress) |
HttpServer |
createServerFor(ServerAddress serverAddress,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout) |
HttpServer |
createSslServerFor(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
ServerAddress serverAddress,
boolean usePersistentConnections,
int connectionIdleTimeout) |
void |
dispose()
Frees all the resource hold by the server manager.
|
public static final String MAXIMUM_HEADER_SECTION_SIZE_PROPERTY_KEY
public GrizzlyServerManager(String threadNamePrefix, HttpListenerRegistry httpListenerRegistry, TcpServerSocketProperties serverSocketProperties) throws IOException
IOExceptionpublic boolean containsServerFor(ServerAddress serverAddress)
containsServerFor in interface HttpServerManagerserverAddress - address of the serverpublic HttpServer createSslServerFor(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory, Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier, ServerAddress serverAddress, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
createSslServerFor in interface HttpServerManagerschedulerSupplier - work manager source to use for retrieving an Executor for processing this server requestsserverAddress - address of the serverusePersistentConnections - if true, the connections will be kept open for subsequent requestsconnectionIdleTimeout - the amount of milliseconds to keep open an idle connectionIOException - if it was not possible to create the Server. Most likely because the host and port is already in use.public HttpServer createServerFor(ServerAddress serverAddress, Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
createServerFor in interface HttpServerManagerserverAddress - address of the serverschedulerSupplier - work manager source to use for retrieving an Executor for processing this server requestsusePersistentConnections - if true, the connections will be kept open for subsequent requestsconnectionIdleTimeout - the amount of milliseconds to keep open an idle connection @return the create Server handlerIOException - if it was not possible to create the Server. Most likely because the host and port is already in use.public void dispose()
HttpServerManagerdispose in interface HttpServerManagerCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.