Click or drag to resize

SupportUpdateListener Class

Update listener that retains the events it receives for use in assertions.
Inheritance Hierarchy
SystemObject
  com.espertech.esper.runtime.client.scopetestSupportUpdateListener

Namespace:  com.espertech.esper.runtime.client.scopetest
Assembly:  NEsper.Runtime (in NEsper.Runtime.dll) Version: 8.0.0.0
Syntax
C#
public class SupportUpdateListener : UpdateListener, 
	SupportListener

The SupportUpdateListener type exposes the following members.

Constructors
  NameDescription
Public methodSupportUpdateListener
Ctor.
Top
Properties
  NameDescription
Public propertyDataListsFlattened
Returns a pair of insert and remove stream event arrays considering the all invocations.
Public propertyIsInvoked
Returns true if the listener was invoked at least once.
Public propertyLastNewData
Returns the last array of events (insert stream) that were received.
Public propertyLastOldData
Returns the last array of remove-stream events that were received.
Public propertyNewDataList
Get a list of all insert-stream event arrays received.
Public propertyNewDataListFlattened
Returns an event array that represents all insert-stream events received so far.
Public propertyOldDataList
Get a list of all remove-stream event arrays received.
Public propertyOldDataListFlattened
Returns an event array that represents all remove-stream events received so far.
Public propertyTag
Gets or sets a public tag for the listener. This is useful for tracking the listener when more than one listener might be in use.
Top
Methods
  NameDescription
Public methodAssertGetAndResetIRPair
Public methodAssertInvokedAndReset
Returns a pair of insert and remove stream event arrays considering the last invocation only, asserting that only a single invocation occured, and resetting the listener.
Public methodAssertInvokedFlagAndReset
Public methodAssertNewOldData
Public methodAssertOneGetNew
Asserts that exactly one insert stream event was received not checking remove stream data, and returns the received event.
Public methodAssertOneGetNewAndReset
Asserts that exactly one insert stream event was received and no remove stream events, resets the listener clearing all state and returns the received event.
Public methodAssertOneGetOld
Asserts that exactly one remove stream event was received not checking insert stream data, and returns the received event.
Public methodAssertOneGetOldAndReset
Asserts that exactly one remove stream event was received and no insert stream events, resets the listener clearing all state and returns the received event.
Public methodAssertPairGetIRAndReset
Asserts that exactly one insert stream event and exactly one remove stream event was received, resets the listener clearing all state and returns the received events as a pair.
Public methodGetAndClearIsInvoked
Returns true if the listener was invoked at least once and clears the invocation flag.
Public methodGetAndResetDataListsFlattened
Returns a pair of insert and remove stream event arrays considering the all invocations, and resets the listener.
Public methodGetAndResetIRPair
Public methodGetAndResetLastNewData
Returns the last array of events (insert stream) that were received and resets the listener.
Public methodGetAndResetLastOldData
Returns the last array of events (insert stream) that were received and resets the listener.
Public methodStatic memberGetInvokedFlagsAndReset
For multiple listeners, return the invoked flags and reset each listener
Public methodIsInvokedAndReset
Returns true if the listener was invoked at least once and clears the invocation flag.
Public methodStatic memberMakeListeners
Produce an array of listeners
Public methodReset
Reset listener, clearing all associated state.
Public methodUpdate
Public methodWaitForInvocation(Int64)
Wait for the listener invocation for up to the given number of milliseconds.
Public methodWaitForInvocation(Int64, Int32)
Wait for the listener invocation for up to the given number of milliseconds.
Top
See Also