public interface PolicyManager
Policys that must be applied to MessageSourcees or
Processors.| Modifier and Type | Method and Description |
|---|---|
OperationPolicy |
createOperationPolicy(org.mule.runtime.api.component.location.ComponentLocation operationLocation,
Event operationEvent,
Map<String,Object> operationParameters,
OperationExecutionFunction operationExecutionFunction)
Creates a policy to be applied to an operation.
|
SourcePolicy |
createSourcePolicyInstance(org.mule.runtime.api.component.location.ComponentLocation sourceLocation,
Event sourceEvent,
Processor flowExecutionProcessor,
MessageSourceResponseParametersProcessor messageSourceResponseParametersProcessor)
Creates a policy to be applied to a source.
|
void |
disposePoliciesResources(String executionIdentifier)
Disposes any resource associated to the given
executionIdentifier. |
SourcePolicy createSourcePolicyInstance(org.mule.runtime.api.component.location.ComponentLocation sourceLocation, Event sourceEvent, Processor flowExecutionProcessor, MessageSourceResponseParametersProcessor messageSourceResponseParametersProcessor)
sourceIdentifier to find specific
policies applied to that source and also the sourceEvent which will be used to extract data to match against the policies
pointcuts.sourceLocation - the source location.sourceEvent - the event generated from the source.flowExecutionProcessor - the processor that executes the flow.messageSourceResponseParametersProcessor - processor to generate the response and error response parameters of the source.SourcePolicy associated to that source.OperationPolicy createOperationPolicy(org.mule.runtime.api.component.location.ComponentLocation operationLocation, Event operationEvent, Map<String,Object> operationParameters, OperationExecutionFunction operationExecutionFunction)
operationIdentifier to find specific
policies applied to that operation and also the operationParameters which will be used to extract data to match against the policies
pointcuts.operationLocation - component location of the operation.operationEvent - the event used to execute the operation.operationParameters - the set of parameters to use to execute the operation.operationExecutionFunction - the function that executes the operation.OperationPolicy associated to that source.void disposePoliciesResources(String executionIdentifier)
executionIdentifier. Any exception generated by this method will be
just logged and discarded.executionIdentifier - identifier used for previous policies executions.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.