Class SupportSubscriberMRD
java.lang.Object
com.espertech.esper.runtime.client.scopetest.SupportSubscriberMRD
Subscriber for multi-row delivery that retains the events it receives for use in assertions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the subscriber was invoked at least once and clears the invocation flag.Returns all insert-stream events received so far.Returns all removed-stream events received so far.boolean
Returns true if the subscriber was invoked at least once.void
reset()
Reset subscriber, clearing all associated state.void
Receive multi-row subscriber data through this methods.
-
Constructor Details
-
SupportSubscriberMRD
public SupportSubscriberMRD()
-
-
Method Details
-
update
Receive multi-row subscriber data through this methods.- Parameters:
insertStream
- new dataremoveStream
- removed data
-
getInsertStreamList
Returns all insert-stream events received so far.The list contains an item for each delivery. Each item contains a row with the event and each event is itself a tuple (object array).
- Returns:
- list of Object array-array
-
getRemoveStreamList
Returns all removed-stream events received so far.The list contains an item for each delivery. Each item contains a row with the event and each event is itself a tuple (object array).
- Returns:
- list of Object array-array
-
reset
public void reset()Reset subscriber, clearing all associated state. -
isInvoked
public boolean isInvoked()Returns true if the subscriber was invoked at least once.- Returns:
- invoked flag
-
getAndClearIsInvoked
public boolean getAndClearIsInvoked()Returns true if the subscriber was invoked at least once and clears the invocation flag.- Returns:
- invoked flag
-