public class TriggerEvent extends Object implements Serializable
Serializable
as long as the associated
payload, if any, is Serializable
.Modifier and Type | Field and Description |
---|---|
static int |
CALL_EVENT
CALL_EVENT . |
static int |
CHANGE_EVENT
CHANGE_EVENT . |
static int |
ERROR_EVENT
ERROR_EVENT . |
static int |
SIGNAL_EVENT
SIGNAL_EVENT . |
static int |
TIME_EVENT
TIME_EVENT . |
Constructor and Description |
---|
TriggerEvent(String name,
int type)
Constructor.
|
TriggerEvent(String name,
int type,
Object payload)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Define an equals operator for TriggerEvent.
|
String |
getName() |
Object |
getPayload() |
int |
getType() |
int |
hashCode()
Returns the hash code for this TriggerEvent object.
|
String |
toString()
Returns a string representation of this TriggerEvent object.
|
public static final int CALL_EVENT
CALL_EVENT
.public static final int CHANGE_EVENT
CHANGE_EVENT
.public static final int SIGNAL_EVENT
SIGNAL_EVENT
.public static final int TIME_EVENT
TIME_EVENT
.public static final int ERROR_EVENT
ERROR_EVENT
.public TriggerEvent(String name, int type, Object payload)
name
- The event nametype
- The event typepayload
- The event payload, must be Serializable
public TriggerEvent(String name, int type)
name
- The event nametype
- The event typepublic String getName()
public Object getPayload()
public int getType()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.