- All Implemented Interfaces:
Iterable<Event>
Iterable stream of
Event objects.
NOTE: This class is not thread-safe. Concurrent iteration from multiple threads should be
avoided or externally synchronized.
-
Constructor Summary
Constructors
Constructs a new event stream.
-
Method Summary
Returns an iterator that fetches events lazily.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EventStream
Constructs a new event stream.
-
Method Details
-
iterator
Returns an iterator that fetches events lazily.
- Specified by:
iterator in interface Iterable<Event>