Package com.bloomberglp.blpapi
Class Event
java.lang.Object
com.bloomberglp.blpapi.Event
All data resulting from subscriptions or requests and administrative messages are delivered as
Events
Event objects are created by the API and passed to the application either through a registered
EventHandler
or an EventQueue
or returned from the AbstractSession.nextEvent()
method. Event objects contain Message
objects which can be accessed using a MessageIterator
. The Event object is a handle to an event. The event is the basic unit of work
provided to applications. Each Event object consists of an Event.EventType
attribute and
zero or more Message objects.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Enumeration of the type of events that can be delivered from Bloomberg services -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Event.EventType
Return the type messages contained by this eventabstract boolean
isValid()
Return true if this event is valid false otherwiseiterator()
Return an iterator over the messages contained in this EventReturn a new instance of a MessageIterator for iterating through all the messages in this EventMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
eventType
Return the type messages contained by this event- Throws:
IllegalStateException
-
isValid
public abstract boolean isValid()Return true if this event is valid false otherwise -
messageIterator
Return a new instance of a MessageIterator for iterating through all the messages in this Event -
iterator
Return an iterator over the messages contained in this Event
-