T - the generic type of the output valueA - the generic type of the message attributespublic class EventedSdkResult<T,A>
extends org.mule.sdk.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 | Constructor and Description |
|---|---|
protected |
EventedSdkResult(CoreEvent event) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.sdk.api.runtime.operation.Result.Builder<T,A> |
copy() |
static <T,A> EventedSdkResult<T,A> |
from(CoreEvent event) |
Optional<A> |
getAttributes() |
Optional<org.mule.runtime.api.metadata.MediaType> |
getAttributesMediaType() |
OptionalLong |
getByteLength() |
CoreEvent |
getEvent() |
Optional<org.mule.runtime.api.metadata.MediaType> |
getMediaType() |
T |
getOutput() |
protected EventedSdkResult(CoreEvent event)
public static <T,A> EventedSdkResult<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–2022 MuleSoft, Inc.. All rights reserved.