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) |
Server |
createServerFor(ServerAddress serverAddress,
WorkManagerSource workManagerSource,
boolean usePersistentConnections,
int connectionIdleTimeout) |
Server |
createSslServerFor(TlsContextFactory tlsContextFactory,
WorkManagerSource workManagerSource,
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
IOException
public boolean containsServerFor(ServerAddress serverAddress)
containsServerFor
in interface HttpServerManager
serverAddress
- address of the serverpublic Server createSslServerFor(TlsContextFactory tlsContextFactory, WorkManagerSource workManagerSource, ServerAddress serverAddress, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
createSslServerFor
in interface HttpServerManager
workManagerSource
- work manager source to use for retrieving a WorkManager
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 Server createServerFor(ServerAddress serverAddress, WorkManagerSource workManagerSource, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
createServerFor
in interface HttpServerManager
serverAddress
- address of the serverworkManagerSource
- work manager source to use for retrieving a WorkManager
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()
HttpServerManager
dispose
in interface HttpServerManager
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.