public interface HttpServerManager
| 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.
|
boolean containsServerFor(ServerAddress serverAddress)
serverAddress - address of the serverHttpServer createServerFor(ServerAddress serverAddress, Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier, boolean usePersistentConnections, int connectionIdleTimeout) throws IOException
serverAddress - 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.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
tlsContextFactory - schedulerSupplier - 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.void dispose()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.