public class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WILDCARD_EVENT_ID |
Constructor and Description |
---|
Event(java.lang.Object id,
StateContext context)
Creates a new
Event with the specified id and no arguments. |
Event(java.lang.Object id,
StateContext context,
java.lang.Object[] arguments)
Creates a new
Event with the specified id and arguments. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments()
Returns the arguments of this
Event . |
StateContext |
getContext()
Returns the
StateContext this Event was triggered for. |
java.lang.Object |
getId()
Returns the id of this
Event . |
java.lang.String |
toString() |
public static final java.lang.String WILDCARD_EVENT_ID
public Event(java.lang.Object id, StateContext context)
Event
with the specified id and no arguments.id
- the event id.context
- the StateContext
the event was triggered for.public Event(java.lang.Object id, StateContext context, java.lang.Object[] arguments)
Event
with the specified id and arguments.id
- the event id.context
- the StateContext
the event was triggered for.arguments
- the event arguments.public StateContext getContext()
StateContext
this Event
was triggered for.StateContext
.public java.lang.Object getId()
Event
.public java.lang.Object[] getArguments()
Event
.Event
has
no arguments.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.