public interface HttpServerManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsServerFor(ServerAddress serverAddress) |
Server |
createServerFor(ServerAddress serverAddress,
Supplier<Executor> workManagerSource,
boolean usePersistentConnections,
int connectionIdleTimeout) |
Server |
createSslServerFor(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory,
Supplier<Executor> workManagerSource,
ServerAddress serverAddress,
boolean usePersistentConnections,
int connectionIdleTimeout) |
void |
dispose()
Frees all the resource hold by the server manager.
|
boolean containsServerFor(ServerAddress serverAddress)
serverAddress - address of the serverServer createServerFor(ServerAddress serverAddress, Supplier<Executor> workManagerSource, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
serverAddress - address of the serverworkManagerSource - 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.Server createSslServerFor(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory, Supplier<Executor> workManagerSource, ServerAddress serverAddress, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
tlsContextFactory - serverAddress - address of the serverworkManagerSource - 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 connectionIOException - if it was not possible to create the Server. Most likely because the host and port is already in use.void dispose()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.