Interface TypedEventMonitor
@ProviderType
public interface TypedEventMonitor
The EventMonitor service can be used to monitor the events that are sent
using the EventBus, and that are received from remote EventBus instances
- "ThreadSafe"
-
Method Summary
Modifier and TypeMethodDescriptionGet a stream of events, starting now.monitorEvents
(int history) Get a stream of events, including up to the requested number of historical data events.monitorEvents
(Instant history) Get a stream of events, including historical data events prior to the supplied time
-
Method Details
-
monitorEvents
PushStream<MonitorEvent> monitorEvents()Get a stream of events, starting now.- Returns:
- A stream of event data
-
monitorEvents
Get a stream of events, including up to the requested number of historical data events.- Parameters:
history
- The requested number of historical events, note that fewer than this number of events may be returned if history is unavailable, or if insufficient events have been sent.- Returns:
- A stream of event data
-
monitorEvents
Get a stream of events, including historical data events prior to the supplied time- Parameters:
history
- The requested time after which historical events, should be included. Note that events may have been discarded, or history unavailable.- Returns:
- A stream of event data
-