public class EventEscalator extends java.lang.Object implements EventEscalation
ORDER_FIRST, ORDER_LAST, ORDER_NONE
Constructor and Description |
---|
EventEscalator(java.util.Map props) |
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> chkpt)
restores the state of the escalation from the checkpoint Map
|
public Event escalate(int status, long currentTime, Event event)
EventEscalation
escalate
in interface EventEscalation
public int resetSession(long currentTime)
EventEscalation
resetSession
in interface EventEscalation
public long getSessionTime()
EventEscalation
getSessionTime
in interface EventEscalation
public int getSessionSize()
EventEscalation
getSessionSize
in interface EventEscalation
public java.lang.String getName()
EventEscalation
getName
in interface EventEscalation
public int getEscalationOrder()
EventEscalation
getEscalationOrder
in interface EventEscalation
public void clear()
EventEscalation
clear
in interface EventEscalation
public java.util.Map<java.lang.String,java.lang.Object> checkpoint()
EventEscalation
checkpoint
in interface EventEscalation
public void restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
EventEscalation
restoreFromCheckpoint
in interface EventEscalation