public final class ReactiveOperationExecutionWrapper<M extends org.mule.runtime.api.meta.model.ComponentModel> extends Object implements org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<M>, OperationArgumentResolverFactory<M>, org.mule.runtime.api.lifecycle.Lifecycle, MuleContextAware
ComponentExecutor adding the necessary logic to execute non blocking operations.
If the operation being executed is blocking, then it delegates to the wrapped executor transparently. If the operation is non
blocking, then it creates and injects a CompletionCallback on which the operation result will be notified.
It also implements Lifecycle and MuleContextAware, propagating those to the decoratee if necessary
| Constructor and Description |
|---|
ReactiveOperationExecutionWrapper(org.mule.runtime.extension.api.runtime.operation.ComponentExecutor delegate) |
| Modifier and Type | Method and Description |
|---|---|
Function<org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M>,Map<String,Object>> |
createArgumentResolver(M operationModel)
Builds the argument resolver based on an
executionContext and the internal state of this object. |
void |
dispose() |
org.reactivestreams.Publisher<Object> |
execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M> executionContext) |
void |
initialise() |
void |
setMuleContext(MuleContext muleContext) |
void |
start() |
void |
stop() |
public ReactiveOperationExecutionWrapper(org.mule.runtime.extension.api.runtime.operation.ComponentExecutor delegate)
public org.reactivestreams.Publisher<Object> execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M> executionContext)
execute in interface org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<M extends org.mule.runtime.api.meta.model.ComponentModel>public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic Function<org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M>,Map<String,Object>> createArgumentResolver(M operationModel)
OperationArgumentResolverFactoryexecutionContext and the internal state of this object.createArgumentResolver in interface OperationArgumentResolverFactory<M extends org.mule.runtime.api.meta.model.ComponentModel>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.