ANNOTATIONS_PROPERTY_NAME
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Event> |
execute(Event event)
Executes the component based on a
Event that may have been provided by another component execution. |
CompletableFuture<ExecutionResult> |
execute(InputEvent inputEvent)
Executes the component based on a
InputEvent created programmatically be the user. |
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
CompletableFuture<ExecutionResult> execute(InputEvent inputEvent)
InputEvent
created programmatically be the user.
Streams will be closed and resources cleaned up when the callee invokes ExecutionResult.complete()
.
inputEvent
- the input to execute the componentExecutionResult
with the content of the resultComponentExecutionException
- if there is an unhandled error within the executionCompletableFuture<Event> execute(Event event)
Event
that may have been provided by another component execution.
Streams will be closed and resources cleaned up when when the existing root EventContext
completes.
event
- the input to execute the componentEvent
with the content of the resultComponentExecutionException
- if there is an unhandled error within the executionCopyright © 2018. All rights reserved.