Class UpdateDispatchViewBase
java.lang.Object
com.espertech.esper.common.internal.view.core.ViewSupport
com.espertech.esper.runtime.internal.kernel.updatedispatch.UpdateDispatchViewBase
- All Implemented Interfaces:
com.espertech.esper.common.internal.statement.dispatch.Dispatchable
,com.espertech.esper.common.internal.statement.dispatch.UpdateDispatchView
,com.espertech.esper.common.internal.view.core.View
,com.espertech.esper.common.internal.view.core.Viewable
,Iterable<com.espertech.esper.common.client.EventBean>
- Direct Known Subclasses:
UpdateDispatchViewBlockingSpin
,UpdateDispatchViewBlockingWait
,UpdateDispatchViewNonBlocking
public abstract class UpdateDispatchViewBase
extends com.espertech.esper.common.internal.view.core.ViewSupport
implements com.espertech.esper.common.internal.statement.dispatch.Dispatchable, com.espertech.esper.common.internal.statement.dispatch.UpdateDispatchView
Convenience view for dispatching view updates received from a parent view to update listeners
via the dispatch service.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.espertech.esper.common.internal.statement.dispatch.DispatchService
Dispatches events to listeners.protected final com.espertech.esper.common.client.EventType
protected com.espertech.esper.common.client.EventBean
For iteration with patterns.protected final com.espertech.esper.common.internal.context.util.StatementResultService
Handles result deliveryFields inherited from class com.espertech.esper.common.internal.view.core.ViewSupport
child, parent
Fields inherited from interface com.espertech.esper.common.internal.view.core.Viewable
EPTYPE
-
Constructor Summary
ConstructorDescriptionUpdateDispatchViewBase
(com.espertech.esper.common.client.EventType eventType, com.espertech.esper.common.internal.context.util.StatementResultService statementResultServiceImpl, com.espertech.esper.common.internal.statement.dispatch.DispatchService dispatchService) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
Remove event reference to last event.void
execute()
com.espertech.esper.common.client.EventType
com.espertech.esper.common.internal.context.util.StatementResultService
com.espertech.esper.common.internal.statement.dispatch.UpdateDispatchView
getView()
Iterator<com.espertech.esper.common.client.EventBean>
iterator()
void
newResult
(com.espertech.esper.common.internal.collection.UniformPair<com.espertech.esper.common.client.EventBean[]> result) void
update
(com.espertech.esper.common.client.EventBean[] newData, com.espertech.esper.common.client.EventBean[] oldData) Methods inherited from class com.espertech.esper.common.internal.view.core.ViewSupport
getChild, getParent, setChild, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.espertech.esper.common.internal.view.core.View
getParent, setParent
Methods inherited from interface com.espertech.esper.common.internal.view.core.Viewable
getChild, setChild
-
Field Details
-
eventType
protected final com.espertech.esper.common.client.EventType eventType -
statementResultService
protected final com.espertech.esper.common.internal.context.util.StatementResultService statementResultServiceHandles result delivery -
dispatchService
protected final com.espertech.esper.common.internal.statement.dispatch.DispatchService dispatchServiceDispatches events to listeners. -
lastIterableEvent
protected com.espertech.esper.common.client.EventBean lastIterableEventFor iteration with patterns.
-
-
Constructor Details
-
UpdateDispatchViewBase
public UpdateDispatchViewBase(com.espertech.esper.common.client.EventType eventType, com.espertech.esper.common.internal.context.util.StatementResultService statementResultServiceImpl, com.espertech.esper.common.internal.statement.dispatch.DispatchService dispatchService) Ctor.- Parameters:
dispatchService
- - for performing the dispatchstatementResultServiceImpl
- - handles result deliveryeventType
- event type
-
-
Method Details
-
getEventType
public com.espertech.esper.common.client.EventType getEventType()- Specified by:
getEventType
in interfacecom.espertech.esper.common.internal.view.core.Viewable
-
iterator
-
execute
public void execute()- Specified by:
execute
in interfacecom.espertech.esper.common.internal.statement.dispatch.Dispatchable
-
clear
public void clear()Remove event reference to last event. -
getStatementResultService
public com.espertech.esper.common.internal.context.util.StatementResultService getStatementResultService() -
getView
public com.espertech.esper.common.internal.statement.dispatch.UpdateDispatchView getView()- Specified by:
getView
in interfacecom.espertech.esper.common.internal.statement.dispatch.Dispatchable
-
newResult
public void newResult(com.espertech.esper.common.internal.collection.UniformPair<com.espertech.esper.common.client.EventBean[]> result) - Specified by:
newResult
in interfacecom.espertech.esper.common.internal.statement.dispatch.UpdateDispatchView
-
update
public void update(com.espertech.esper.common.client.EventBean[] newData, com.espertech.esper.common.client.EventBean[] oldData) - Specified by:
update
in interfacecom.espertech.esper.common.internal.view.core.View
-
cancelled
public void cancelled()- Specified by:
cancelled
in interfacecom.espertech.esper.common.internal.statement.dispatch.Dispatchable
-