public class CachedExtensionsClientProcessorsStrategy extends AbstractExtensionsClientProcessorsStrategy
ExtensionsClientProcessorsStrategy that reuses instances of OperationMessageProcessor for executions when
possible.event, extensionManager, muleContext, parser, policyManager, reflectionCache, registry| Constructor and Description |
|---|
CachedExtensionsClientProcessorsStrategy(ExtensionManager extensionManager,
org.mule.runtime.api.artifact.Registry registry,
MuleContext muleContext,
PolicyManager policyManager,
ReflectionCache reflectionCache,
CoreEvent event,
com.github.benmanes.caffeine.cache.Cache<String,OperationMessageProcessor> operationMessageProcessorCache)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
disposeProcessor(OperationMessageProcessor operationMessageProcessor)
Signal that the
OperationMessageProcessor has been finished using and depending on the implementation it may end up
freeing its resources, or it may do it in the future. |
CoreEvent |
getEvent(org.mule.runtime.extension.api.client.OperationParameters parameters)
Returns the appropiate event to be used to run de desired operation with the
OperationParameters given. |
OperationMessageProcessor |
getOperationMessageProcessor(String extensionName,
String operationName,
org.mule.runtime.extension.api.client.OperationParameters parameters)
Returns the appropiate
OperationMessageProcessor to be used for executing the operation. |
createProcessor, findConfiguration, findExtension, findOperation, getBaseEvent, resolveParameterspublic CachedExtensionsClientProcessorsStrategy(ExtensionManager extensionManager, org.mule.runtime.api.artifact.Registry registry, MuleContext muleContext, PolicyManager policyManager, ReflectionCache reflectionCache, CoreEvent event, com.github.benmanes.caffeine.cache.Cache<String,OperationMessageProcessor> operationMessageProcessorCache)
public OperationMessageProcessor getOperationMessageProcessor(String extensionName, String operationName, org.mule.runtime.extension.api.client.OperationParameters parameters)
OperationMessageProcessor to be used for executing the operation.extensionName - the name of the extension to run the operation.operationName - the name of the operation to run.parameters - the operation parameters used to run the operationpublic CoreEvent getEvent(org.mule.runtime.extension.api.client.OperationParameters parameters)
OperationParameters given.parameters - the OperationParameters used to execute the operation.public void disposeProcessor(OperationMessageProcessor operationMessageProcessor)
OperationMessageProcessor has been finished using and depending on the implementation it may end up
freeing its resources, or it may do it in the future.operationMessageProcessor - processor to be disposed.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.