T - the generic type of the output valueA - the generic type of the message attributespublic final class EventedResult<T,A>
extends org.mule.runtime.extension.api.runtime.operation.Result<T,A>
Result that is created based on the resulting InternalEvent
of that execution.
This allows for executions to be concatenated by the plugin's developer without losing
information of the event propagated through the flow.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result.Builder<T,A> |
copy() |
static <T,A> EventedResult<T,A> |
from(InternalEvent event) |
Optional<A> |
getAttributes() |
Optional<org.mule.runtime.api.metadata.MediaType> |
getAttributesMediaType() |
InternalEvent |
getEvent() |
Optional<Long> |
getLength() |
Optional<org.mule.runtime.api.metadata.MediaType> |
getMediaType() |
T |
getOutput() |
public static <T,A> EventedResult<T,A> from(InternalEvent event)
public InternalEvent getEvent()
public T getOutput()
public Optional<org.mule.runtime.api.metadata.MediaType> getMediaType()
public Optional<org.mule.runtime.api.metadata.MediaType> getAttributesMediaType()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.