public class Trigger<T extends Trigger> extends Object implements TriggerContext
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
async |
protected Identifier |
definitionId |
protected Identifier |
instanceId |
protected Identifier |
nodeId |
protected FlowProperties |
properties |
protected Boolean |
signaling |
| Constructor and Description |
|---|
Trigger() |
| Modifier and Type | Method and Description |
|---|---|
T |
async(Boolean async) |
T |
definitionId(Enum id) |
T |
definitionId(Identifier definitionId) |
T |
definitionId(String id) |
boolean |
equals(Object o)
TODO: should we include the setProperties into equals?
|
Identifier |
getDefinitionId() |
Identifier |
getInstanceId() |
Identifier |
getNodeId() |
FlowProperties<ExecutionProperty> |
getProperties() |
<P> P |
getProperty(String key,
Class<P> type) |
int |
hashCode() |
T |
instanceId(Identifier instanceId) |
Boolean |
isAsync() |
Boolean |
isSignaling() |
T |
nodeId(Identifier nodeId) |
T |
properties(FlowProperties properties) |
T |
property(Object value) |
T |
property(String key,
Object value) |
void |
setProperties(FlowProperties properties) |
void |
setProperty(String key,
Object value) |
T |
signaling(Boolean signaling) |
String |
toString() |
protected Identifier definitionId
protected Identifier instanceId
protected Identifier nodeId
protected Boolean async
protected Boolean signaling
protected FlowProperties properties
public Identifier getDefinitionId()
getDefinitionId in interface TriggerContextpublic Identifier getInstanceId()
getInstanceId in interface TriggerContextpublic Identifier getNodeId()
getNodeId in interface TriggerContextpublic T definitionId(Identifier definitionId)
public T instanceId(Identifier instanceId)
public T nodeId(Identifier nodeId)
public T properties(FlowProperties properties)
public void setProperties(FlowProperties properties)
setProperties in interface TriggerContextpublic void setProperty(String key, Object value)
setProperty in interface TriggerContextpublic <P> P getProperty(String key, Class<P> type)
getProperty in interface TriggerContextpublic FlowProperties<ExecutionProperty> getProperties()
getProperties in interface TriggerContextpublic Boolean isAsync()
isAsync in interface TriggerContextpublic Boolean isSignaling()
isSignaling in interface TriggerContextpublic boolean equals(Object o)
Copyright © 2015. All rights reserved.