Click or drag to resize

EPStatementSetSubscriber Method (Object, String)

Attaches a subscriber to receive statement results by calling the method with the provided method name, or removes a previously set subscriber (by providing a null value).

Note: Requires the allow-subscriber compiler options. Only a single subscriber may be set for a statement. If this method is invoked twice any previously-set subscriber is no longer used.

Namespace:  com.espertech.esper.runtime.client
Assembly:  NEsper.Runtime (in NEsper.Runtime.dll) Version: 8.0.0.0
Syntax
C#
void SetSubscriber(
	Object subscriber,
	string methodName
)

Parameters

subscriber
Type: SystemObject
to attach, or null to remove the previously set subscriber
methodName
Type: SystemString
the name of the method to invoke, or null for the "update" method
See Also