EventSink<T> class

An interface that abstracts creation or handling of Stream events.

An interface that abstracts creation or handling of Stream events.

Implements:
Implementors

Constructors

EventSink ( )

Instance Methods

add ( T event ) → void
Send a data event to a stream.
addError ( errorEvent, [StackTrace stackTrace] ) → void
Send an async error to a stream.
close ( ) → void
Close the sink. No further events can be added after closing.