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,
Supplier<Long> shutdownTimeout)
Deprecated.
as of 1.7.0, 1.6.1, 1.5.15 use
createServerFor(ServerAddress, Supplier, boolean, int, ServerIdentifier, Supplier, long) instead. |
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,
Supplier<Long> shutdownTimeout,
long readTimeout) |
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,
Supplier<Long> shutdownTimeout)
Deprecated.
as of 1.7.0, 1.6.1, 1.5.15 use
createSslServerFor(TlsContextFactory, Supplier, ServerAddress, boolean, int, ServerIdentifier, Supplier, long)
instead. |
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,
Supplier<Long> shutdownTimeout,
long readTimeout) |
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 server@Deprecated 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, Supplier<Long> shutdownTimeout) throws org.mule.runtime.http.api.server.ServerCreationException
createServerFor(ServerAddress, Supplier, boolean, int, ServerIdentifier, Supplier, long) instead.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 servershutdownTimeout - time to wait for persistent connections to be closed when server is stopped.org.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 createServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier,
Supplier<Long> shutdownTimeout,
long readTimeout)
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 servershutdownTimeout - time to wait for persistent connections to be closed when server is stopped.readTimeout - time to wait while reading input in millisecondsorg.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.@Deprecated 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, Supplier<Long> shutdownTimeout) throws org.mule.runtime.http.api.server.ServerCreationException
createSslServerFor(TlsContextFactory, Supplier, ServerAddress, boolean, int, ServerIdentifier, Supplier, long)
instead.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 servershutdownTimeout - time to wait for persistent connections to be closed when server is stopped.org.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,
Supplier<Long> shutdownTimeout,
long readTimeout)
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 servershutdownTimeout - time to wait for persistent connections to be closed when server is stopped.readTimeout - time to wait while reading input in millisecondsorg.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–2024 MuleSoft, Inc.. All rights reserved.