public class TimeoutEvent extends java.lang.Object implements Event
TimeoutStateMachine,
TimeoutEvent.Type.LOOP_RESTART,
TimeoutEvent.Type.LOOP_NO_RESTART| Modifier and Type | Class and Description |
|---|---|
static class |
TimeoutEvent.Type
The type of timeout event to specify the behavior on loop transition.
|
| Constructor and Description |
|---|
TimeoutEvent(long timeout,
TimeoutEvent.Type type)
Deprecated.
Prefer
instance(long, Type) method instead. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compare the objects using internal fields.
|
long |
getTimeout() |
TimeoutEvent.Type |
getType() |
int |
hashCode()
Get the hash code of the object.
|
static TimeoutEvent |
instance(long timeout,
TimeoutEvent.Type type)
Create instance of this class.
|
java.lang.String |
toString()
The string representation of the object.
|
@Deprecated
public TimeoutEvent(long timeout,
TimeoutEvent.Type type)
instance(long, Type) method instead.timeout - the timeout in milliseconds, must be positivetype - the type of the eventpublic static TimeoutEvent instance(long timeout, TimeoutEvent.Type type)
timeout - the timeout in milliseconds, must be positivetype - the type of the eventpublic long getTimeout()
public TimeoutEvent.Type getType()
public int hashCode()
Eventpublic boolean equals(java.lang.Object obj)
Eventequals in interface Eventequals in class java.lang.Objectobj - the objectProcessor.process(Event)public java.lang.String toString()
EventCopyright 2012-2013 Michal Turek, AnotherFSM.