Click or drag to resize
EventDispatcher Class
Dispatches events from one or more sessions through callbacks.
Inheritance Hierarchy
SystemObject
  Bloomberglp.BlpapiEventDispatcher

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.11.1
Syntax
public sealed class EventDispatcher

The EventDispatcher type exposes the following members.

Constructors
  NameDescription
Public methodEventDispatcher
Same as calling EventDispatcher(0).
Public methodEventDispatcher(Int32)
Creates an EventDispatcher with the specified number of dispatcher threads.
Public methodEventDispatcher(Int32, Int32) Obsolete.
Deprecated As of release 3.1.0.0 use SessionOptions.setMaxEventQueueSize(int) for setting the event queue size per session
Top
Properties
  NameDescription
Public propertyNumActiveThreads
Gets the number of active threads dispatching events in this EventDispatcher.
Top
Methods
  NameDescription
Public methodDispatcherThread
Adds a event dispatcher thread to this EventDispatcher.
Public methodStart
Starts generating callbacks for events from Sessions associated with this EventDispatcher.
Public methodStop
Same as calling Stop(StopOption) with StopOption.SYNC.
Public methodStop(EventDispatcherStopOption)
Stops generating callbacks for events from sessions.
Top
Remarks
EventDispatcher objects are optionally specified when Session objects are constructed. A single EventDispatcher can be shared by multiple Session objects. The EventDispatcher provides an event-driven interface, generating callbacks from one or more internal threads for one or more sessions.
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
See Also