public interface HttpServerManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
ServerIdentifier identifier) |
org.mule.runtime.http.api.server.HttpServer |
createServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier) |
org.mule.runtime.http.api.server.HttpServer |
createSslServerFor(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
org.mule.runtime.http.api.server.ServerAddress serverAddress,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier) |
void |
dispose()
Frees all the resource hold by the server manager.
|
org.mule.runtime.http.api.server.HttpServer |
lookupServer(ServerIdentifier identifier) |
boolean containsServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
ServerIdentifier identifier)
serverAddress - address of the serveridentifier - the id of the serverorg.mule.runtime.http.api.server.HttpServer createServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier)
throws org.mule.runtime.http.api.server.ServerCreationException
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 handleridentifier - the id of the serverorg.mule.runtime.http.api.server.ServerCreationException - if it was not possible to create the Server. Most likely because the host and port is already in use.org.mule.runtime.http.api.server.HttpServer createSslServerFor(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
org.mule.runtime.http.api.server.ServerAddress serverAddress,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier)
throws org.mule.runtime.http.api.server.ServerCreationException
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 connectionidentifier - the id of the serverorg.mule.runtime.http.api.server.ServerCreationException - if it was not possible to create the Server. Most likely because the host and port is already in use.org.mule.runtime.http.api.server.HttpServer lookupServer(ServerIdentifier identifier) throws org.mule.runtime.http.api.server.ServerNotFoundException
identifier - the id of the serverOptional with the corresponding HttpServer or an empty one, if none was foundorg.mule.runtime.http.api.server.ServerNotFoundException - when the desired server was not foundvoid dispose()
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.