|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.server.plugin.subscription.correlation.EventBuffer
This class stores the events collected in each incomplete sequence. It represents a partially matched pattern. A pattern may be matched without time bounds, or it can be defined to detect events that all arrive within certain time interval, or it can detect events that come one, after another, with some time interval, in between.
Constructor Summary | |
EventBuffer(int size)
|
|
EventBuffer(int size,
long withinInterval,
long afterInterval,
boolean enforceOrder)
Sets a buffer which must be filled within some interval, or must receive events, one after another, after some interval, that must have order enforced or not |
Method Summary | |
EventInterface[] |
getBufferContent()
|
int |
getBufferSize()
|
int |
getMatchSize()
|
boolean |
isExpired()
|
boolean |
isFull()
Indicates whether or not all expected events arrived |
boolean |
objectArrivedForPosition(java.lang.Object element,
int position)
Receives a notification informing the arrival of an event from the specified position in the pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventBuffer(int size)
public EventBuffer(int size, long withinInterval, long afterInterval, boolean enforceOrder)
size
- is the expected number of events to expect in this patternwithinInterval
- is the total amount of time withing which all events must arrivedafterInterval
- is the minimal time period between each eventMethod Detail |
public EventInterface[] getBufferContent()
public boolean isFull()
public boolean isExpired()
public boolean objectArrivedForPosition(java.lang.Object element, int position)
position
- is the position in the pattern, where it came from
public int getBufferSize()
public int getMatchSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |