public final class ProcessorChainValueResolver extends Object implements ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>
ValueResolver which wraps the given Processor in a Chain, using the event of the current
ValueResolvingContext. This resolver returns new instances per every invocation| Constructor and Description |
|---|
ProcessorChainValueResolver(MuleContext ctx,
StreamingManager streamingManager,
List<Processor> processors)
Creates a resolver for a new chain executor with the give
processors, tying the lifecycle of that chain to the
lifecycle of the provided muleContext. |
ProcessorChainValueResolver(StreamingManager streamingManager,
MessageProcessorChain chain)
Creates a resolver for the provided chain executor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.extension.api.runtime.route.Chain |
resolve(ValueResolvingContext context)
|
public ProcessorChainValueResolver(StreamingManager streamingManager, MessageProcessorChain chain)
chain must be managed by the owner
of the chain.streamingManager - chain - the chain to create an executor forpublic ProcessorChainValueResolver(MuleContext ctx, StreamingManager streamingManager, List<Processor> processors)
processors, tying the lifecycle of that chain to the
lifecycle of the provided muleContext.ctx - the context to tie the lifecycle of the chain to be created toprocessors - the processors that will be part of the chain to create an executor forpublic org.mule.runtime.extension.api.runtime.route.Chain resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
resolve in interface ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>context - a ValueResolvingContextChainorg.mule.runtime.api.exception.MuleExceptionpublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. Notice
that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>falseCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.