|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ViewSupport
net.esper.core.UpdateDispatchViewBase
public abstract class UpdateDispatchViewBase
Convenience view for dispatching view updates received from a parent view to update listeners via the dispatch service.
Field Summary | |
---|---|
protected DispatchService |
dispatchService
Dispatches events to listeners. |
protected ThreadLocal<Boolean> |
isDispatchWaiting
Flag to indicate we have registered a dispatch. |
protected EventBean |
lastIterableEvent
For iteration with patterns. |
protected ThreadLocal<LinkedList<EventBean[]>> |
lastNewEvents
Buffer for holding dispatchable events. |
protected ThreadLocal<LinkedList<EventBean[]>> |
lastOldEvents
Buffer for holding dispatchable events. |
Fields inherited from class net.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
UpdateDispatchViewBase(EPServiceProvider epServiceProvider,
EPStatement statement,
EPStatementListenerSet updateListeners,
DispatchService dispatchService)
Ctor. |
Method Summary | |
---|---|
void |
clear()
Remove event reference to last event. |
void |
execute()
Execute dispatch. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
setUpdateListeners(EPStatementListenerSet updateListeners)
Set new update listeners. |
Methods inherited from class net.esper.view.ViewSupport |
---|
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, setParent, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.esper.view.View |
---|
update |
Field Detail |
---|
protected final DispatchService dispatchService
protected EventBean lastIterableEvent
protected ThreadLocal<Boolean> isDispatchWaiting
protected ThreadLocal<LinkedList<EventBean[]>> lastNewEvents
protected ThreadLocal<LinkedList<EventBean[]>> lastOldEvents
Constructor Detail |
---|
public UpdateDispatchViewBase(EPServiceProvider epServiceProvider, EPStatement statement, EPStatementListenerSet updateListeners, DispatchService dispatchService)
epServiceProvider
- - the engine instance to provided to statement-aware listenerupdateListeners
- - listeners to updatedispatchService
- - for performing the dispatchstatement
- is the statement to supply to statement-aware listenerMethod Detail |
---|
public void setUpdateListeners(EPStatementListenerSet updateListeners)
updateListeners
- to setpublic EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public Iterator<EventBean> iterator()
EventCollection
iterator
in interface Iterable<EventBean>
iterator
in interface EventCollection
public void execute()
Dispatchable
execute
in interface Dispatchable
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |