public interface EventBrowser
Browser
which is used to iterate through the
entries of a Space. An EventBrowser is created by calling Metaspace.browseEvents(java.lang.String, com.tibco.as.space.browser.EventBrowserDef)
.
EventBrowsers implement a next() and a stop() method but unlike traditional iterators, an
EventBrowser does not have a hasNext() method. Instead EventBrowsers have a timeout which is the
amount of time that the next() method call will block while waiting for a new event
to occur in the Space.
EventBrowsers have several mechanisms which help to limit the events being browsed.
The time scope setting limits the set of events being iterated over based upon the time the entries,
for which the events occur, are stored in the space relative to the time the EventBrowser is created.
EventBrowserDef
,
SpaceEvent
,
Browser
Modifier and Type | Method and Description |
---|---|
SpaceEvent |
next()
Retrieve the next event of the Space.
|
void |
stop()
Stop the EventBrowser.
|
SpaceEvent next() throws ASException
null
if the EventBrowser times out waiting
for an event to occur in the Space.ASException
- An exception is thrown if an error occurs while fetching the next event.void stop() throws ASException
ASException
- An exception is thrown if an error occurs while trying to stop the EventBrowser.Copyright (c) 2014 Cloud Software Group, Inc. All rights reserved.