public interface Trigger
User can create a trigger with the createTrigger method in TriggerManager.
| Modifier and Type | Field and Description |
|---|---|
static int |
CRONAT
The type of trigger.
|
static java.lang.String |
EVENT_NAME
The property of the event name: Trigger (value="TRIGGER_FIRE").
|
static int |
EXTERN
The type of trigger.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Retrieves description of a trigger.
|
java.lang.String |
getName()
Retrieves the name of a trigger.
|
long |
getPrevFireTime()
Retrieves the last fired time.
|
int |
getReferenced()
Returns referenced count, which is the count of scheduled tasks bound with the trigger.
|
boolean |
isEnable()
Returns whether the trigger is enabled.
|
static final java.lang.String EVENT_NAME
static final int CRONAT
static final int EXTERN
java.lang.String getName()
Trigger name is exclusive, and the trigger manager use trigger name to distinguish and manage triggers.
java.lang.String getDescription()
The description of a trigger is to help user remember a trigger, and is not mandatory.
null.boolean isEnable()
long getPrevFireTime()
If the trigger has never been fired, this method will return -1L.
int getReferenced()