|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AjaxEventFilter
Filters Ajax events for each individual Comet connection/user. When an event is generated all current connections to the comet handler must receive the event.
Logically, the event filter's "filterEvent" method gets called for every event when it gets passed to every comet listener. This means that the filter has the ability to change each event for each listener individually.
For performance reasons the filters must be able to operate in bulk mode. In this mode the filter initializes for one specific event, then it's filterEvent() method gets called for every listener that needs the event. After this the system calls the filter's close() method allowing it to release any resources it has allocated.
When filtering the filter is not allowed to change the input data because that is the single copy of the data that was passed to the postEvent() call. If the filter needs to change data it has to create a copy, change the copy and return that as it's result
Method Summary | |
---|---|
void |
close()
Eventueel opruimen van allerlei zooi. |
java.lang.Object |
filterEvent(EventCometContext eventCometContext,
java.lang.Object eventdata)
Filter the data. |
Method Detail |
---|
java.lang.Object filterEvent(EventCometContext eventCometContext, java.lang.Object eventdata) throws java.lang.Exception
eventCometContext
-
java.lang.Exception
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |