public class ImmutableProcessorChainExecutor extends Object implements org.mule.runtime.extension.api.runtime.route.Chain, org.mule.runtime.api.lifecycle.Initialisable
Chain that wraps a Processor and allows to execute it| Constructor and Description |
|---|
ImmutableProcessorChainExecutor(InternalEvent event,
MessageProcessorChain chain)
Creates a new immutable instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
void |
process(Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess,
BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError) |
void |
process(Object payload,
Object attributes,
Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess,
BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError) |
void |
process(org.mule.runtime.extension.api.runtime.operation.Result result,
Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess,
BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError) |
public ImmutableProcessorChainExecutor(InternalEvent event, MessageProcessorChain chain)
event - the original InternalEvent for the execution of the given chainchain - a Processor chain to be executedpublic void process(Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess, BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError)
process in interface org.mule.runtime.extension.api.runtime.route.Chainpublic void process(Object payload, Object attributes, Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess, BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError)
process in interface org.mule.runtime.extension.api.runtime.route.Chainpublic void process(org.mule.runtime.extension.api.runtime.operation.Result result,
Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess,
BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError)
process in interface org.mule.runtime.extension.api.runtime.route.Chainpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.