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 CoreEvent
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(CoreEvent event) |
Optional<A> |
getAttributes() |
Optional<org.mule.runtime.api.metadata.MediaType> |
getAttributesMediaType() |
OptionalLong |
getByteLength() |
CoreEvent |
getEvent() |
Optional<Long> |
getLength() |
Optional<org.mule.runtime.api.metadata.MediaType> |
getMediaType() |
T |
getOutput() |
public static <T,A> EventedResult<T,A> from(CoreEvent event)
public CoreEvent getEvent()
public T getOutput()
public Optional<org.mule.runtime.api.metadata.MediaType> getMediaType()
public Optional<org.mule.runtime.api.metadata.MediaType> getAttributesMediaType()
public OptionalLong getByteLength()
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.