public interface EventEscalation
Modifier and Type | Field and Description |
---|---|
static int |
ORDER_FIRST |
static int |
ORDER_LAST |
static int |
ORDER_NONE |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
checkpoint()
returns the checkpoint Map for the escalation
|
void |
clear()
cleans up all internal caches and releases all resources
|
Event |
escalate(int status,
long currentTime,
Event event)
It examines the event and returns a new event as the escalation or
null if no escalation.
|
int |
getEscalationOrder()
It returns an integer as the escalation order that determines if the
escalation event to be processed before the original event or not.
|
java.lang.String |
getName()
returns the name of the escalation
|
int |
getSessionSize()
returns the size of current session
|
long |
getSessionTime()
returns the start time of current session
|
int |
resetSession(long currentTime)
resets the internal session returns number of items being reset
|
void |
restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> checkpointer)
restores the state of the escalation from the checkpoint Map
|
static final int ORDER_LAST
static final int ORDER_NONE
static final int ORDER_FIRST
Event escalate(int status, long currentTime, Event event)
java.lang.String getName()
int getEscalationOrder()
int resetSession(long currentTime)
long getSessionTime()
int getSessionSize()
java.util.Map<java.lang.String,java.lang.Object> checkpoint()
void restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> checkpointer)
void clear()