public abstract class Event extends Object implements Iterable<Message>
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.EventType
Enumeration of the type of events that can be delivered from Bloomberg
services
|
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
abstract Event.EventType |
eventType()
Return the type messages contained by this event
|
abstract boolean |
isValid()
Return true if this event is valid false otherwise
|
Iterator<Message> |
iterator()
Return an iterator over the messages contained in this Event
|
MessageIterator |
messageIterator()
Return a new instance of a MessageIterator for iterating through all the
messages in this Event
|
public abstract Event.EventType eventType()
IllegalStateExceptionpublic abstract boolean isValid()
public MessageIterator messageIterator()
Copyright © 2017 Bloomberg L.P.. All rights reserved.