public class FsmEvent extends Object implements StateEvent
| Constructor and Description |
|---|
FsmEvent(EventTypes type)
Create instance of class
|
FsmEvent(EventTypes type,
IMessage value)
Create instance of class with predefined parameters
|
FsmEvent(EventTypes type,
IMessage value,
String key)
Create instance of class with predefined parameters
|
FsmEvent(EventTypes type,
String key)
Create instance of class with predefined parameters
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
<E> E |
encodeType(Class<E> eClass) |
long |
getCreatedTime()
Return created time
|
Object |
getData() |
String |
getKey()
Return key value
|
IMessage |
getMessage()
Return attached message
|
Enum |
getType() |
void |
setData(Object o) |
String |
toString()
Return string representation of instance
|
public FsmEvent(EventTypes type)
type - type of eventpublic FsmEvent(EventTypes type, String key)
type - type of eventkey - event keypublic FsmEvent(EventTypes type, IMessage value)
type - type of eventvalue - attached messagepublic FsmEvent(EventTypes type, IMessage value, String key)
type - type of eventvalue - attached messagekey - event keypublic String getKey()
public IMessage getMessage()
public long getCreatedTime()
public <E> E encodeType(Class<E> eClass)
encodeType in interface StateEventpublic Enum getType()
getType in interface StateEventpublic void setData(Object o)
setData in interface StateEventpublic Object getData()
getData in interface StateEventpublic int compareTo(Object o)
compareTo in interface ComparableCopyright © 2016. All Rights Reserved.