Click or drag to resize

SafeEnumeratorE Interface

A concurrency-safe enumerator that iterates over events representing statement results (pull API) in the face of concurrent event processing by further threads.

In comparison to the regular enumerator, the safe enumerator guarantees correct results even as events are being processed by other threads. The cost is that the enumerator holds one or more locks that must be released via the close method. Any locks are acquired at the time an instance is created.

NOTE: An application MUST explicitly dispose the safe enumerator instance to release locks held by the enumerator. The call to the close method should be done in a finally block to make sure the enumerator gets closed.

Multiple safe enumerators may be not be used at the same time by different application threads. A single application thread may hold and use multiple safe enumerators however this is discouraged.

Namespace:  com.espertech.esper.common.client.util
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
public interface SafeEnumerator<E> : IEnumerator, 
	IDisposable, IEnumerator

Type Parameters

E

[Missing <typeparam name="E"/> documentation for "T:com.espertech.esper.common.client.util.SafeEnumerator`1"]

See Also