public class WorkManagerSourceExecutorProvider extends Object implements ExecutorProvider
| Constructor and Description |
|---|
WorkManagerSourceExecutorProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecutor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<ExecutorService> workManagerSource)
Adds an
Executor to be used when a request is made to a
ServerAddress |
Executor |
getExecutor(org.mule.runtime.http.api.server.ServerAddress serverAddress)
Provides an
Executor for a ServerAddress |
void |
removeExecutor(org.mule.runtime.http.api.server.ServerAddress serverAddress) |
public void addExecutor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<ExecutorService> workManagerSource)
Executor to be used when a request is made to a
ServerAddressserverAddress - address to which the executor should be applied toworkManagerSource - the executor to use when a request is done to the server addresspublic void removeExecutor(org.mule.runtime.http.api.server.ServerAddress serverAddress)
public Executor getExecutor(org.mule.runtime.http.api.server.ServerAddress serverAddress)
ExecutorProviderExecutor for a ServerAddressgetExecutor in interface ExecutorProviderserverAddress - an HTTP server addressCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.