public class EventState extends DefaultState implements Serializable, State
DefaultState.Type| Constructor and Description |
|---|
EventState()
No args constructor for use in serialization
|
EventState(String name,
DefaultState.Type type) |
| Modifier and Type | Method and Description |
|---|---|
List<OnEvents> |
getOnEvents()
Define what events trigger one or more actions to be performed
|
boolean |
isExclusive()
If true consuming one of the defined events causes its associated actions to be performed.
|
void |
setExclusive(boolean exclusive)
If true consuming one of the defined events causes its associated actions to be performed.
|
void |
setOnEvents(List<OnEvents> onEvents)
Define what events trigger one or more actions to be performed
|
EventState |
withCompensatedBy(String compensatedBy) |
EventState |
withEnd(End end) |
EventState |
withExclusive(boolean exclusive) |
EventState |
withId(String id) |
EventState |
withMetadata(Map<String,String> metadata) |
EventState |
withName(String name) |
EventState |
withOnErrors(List<Error> onErrors) |
EventState |
withOnEvents(List<OnEvents> onEvents) |
EventState |
withStateDataFilter(StateDataFilter stateDataFilter) |
EventState |
withTimeouts(TimeoutsDefinition timeouts) |
EventState |
withTransition(Transition transition) |
EventState |
withType(DefaultState.Type type) |
getCompensatedBy, getEnd, getId, getMetadata, getName, getOnErrors, getStateDataFilter, getTimeouts, getTransition, getType, setCompensatedBy, setEnd, setId, setMetadata, setName, setOnErrors, setStateDataFilter, setTimeouts, setTransition, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompensatedBy, getEnd, getId, getMetadata, getName, getOnErrors, getStateDataFilter, getTimeouts, getTransition, getTypepublic EventState()
public EventState(String name, DefaultState.Type type)
name - type - public boolean isExclusive()
public void setExclusive(boolean exclusive)
public EventState withExclusive(boolean exclusive)
public List<OnEvents> getOnEvents()
public void setOnEvents(List<OnEvents> onEvents)
public EventState withOnEvents(List<OnEvents> onEvents)
public EventState withId(String id)
withId in class DefaultStatepublic EventState withName(String name)
withName in class DefaultStatepublic EventState withType(DefaultState.Type type)
withType in class DefaultStatepublic EventState withEnd(End end)
withEnd in class DefaultStatepublic EventState withStateDataFilter(StateDataFilter stateDataFilter)
withStateDataFilter in class DefaultStatepublic EventState withMetadata(Map<String,String> metadata)
withMetadata in class DefaultStatepublic EventState withTransition(Transition transition)
withTransition in class DefaultStatepublic EventState withOnErrors(List<Error> onErrors)
withOnErrors in class DefaultStatepublic EventState withCompensatedBy(String compensatedBy)
withCompensatedBy in class DefaultStatepublic EventState withTimeouts(TimeoutsDefinition timeouts)
withTimeouts in class DefaultStateCopyright © 2020–2023 CNCF. All rights reserved.