public class EventRef extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
EventRef.Invoke |
| Constructor and Description |
|---|
EventRef()
No args constructor for use in serialization
|
EventRef(String triggerEventRef,
String resultEventRef) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getContextAttributes()
Add additional extension context attributes to the produced event
|
String |
getData()
Expression which selects parts of the states data output to become the data of the produced event.
|
EventRef.Invoke |
getInvoke()
Specifies if the function should be invoked sync or async.
|
String |
getResultEventRef()
Reference to the unique name of a 'consumed' event definition
(Required)
|
String |
getResultEventTimeout()
Maximum amount of time (ISO 8601 format) to wait for the result event.
|
String |
getTriggerEventRef()
Reference to the unique name of a 'produced' event definition
(Required)
|
void |
setContextAttributes(Map<String,String> contextAttributes)
Add additional extension context attributes to the produced event
|
void |
setData(String data)
Expression which selects parts of the states data output to become the data of the produced event.
|
void |
setInvoke(EventRef.Invoke invoke)
Specifies if the function should be invoked sync or async.
|
void |
setResultEventRef(String resultEventRef)
Reference to the unique name of a 'consumed' event definition
(Required)
|
void |
setResultEventTimeout(String resultEventTimeout)
Maximum amount of time (ISO 8601 format) to wait for the result event.
|
void |
setTriggerEventRef(String triggerEventRef)
Reference to the unique name of a 'produced' event definition
(Required)
|
EventRef |
withContextAttributes(Map<String,String> contextAttributes) |
EventRef |
withData(String data) |
EventRef |
withInvoke(EventRef.Invoke invoke) |
EventRef |
withResultEventRef(String resultEventRef) |
EventRef |
withResultEventTimeout(String resultEventTimeout) |
EventRef |
withTriggerEventRef(String triggerEventRef) |
public String getTriggerEventRef()
public void setTriggerEventRef(String triggerEventRef)
public String getResultEventRef()
public void setResultEventRef(String resultEventRef)
public String getResultEventTimeout()
public void setResultEventTimeout(String resultEventTimeout)
public String getData()
public void setData(String data)
public Map<String,String> getContextAttributes()
public void setContextAttributes(Map<String,String> contextAttributes)
public EventRef.Invoke getInvoke()
public void setInvoke(EventRef.Invoke invoke)
public EventRef withInvoke(EventRef.Invoke invoke)
Copyright © 2020–2023 CNCF. All rights reserved.