Interface EventService
public interface EventService
-
Method Summary
Modifier and TypeMethodDescriptioncreateAdapterEvent(@NotNull String adapterId, @NotNull String protocolId) readEvents(@Nullable Long sinceTimestamp, @Nullable Integer limit) Reads the currently available events.
-
Method Details
-
createAdapterEvent
@NotNull @NotNull EventBuilder createAdapterEvent(@NotNull @NotNull String adapterId, @NotNull @NotNull String protocolId) - Parameters:
adapterId- the id of the adapter for which the event is createdprotocolId- the protocol of the adapter for which the event is created- Returns:
- a
EventBuilderto add further information and build anEvent
-
configurationEvent
- Returns:
- a
EventBuilderto add further information and build anEvent
-
bridgeEvent
-
readEvents
@NotNull @NotNull List<Event> readEvents(@Nullable @Nullable Long sinceTimestamp, @Nullable @Nullable Integer limit) Reads the currently available events.The amount of events stored is limited and therefore this list may not contain the full history of all events.
- Parameters:
sinceTimestamp- events before this timestamp will not be returned.limit- how many events should be fetched- Returns:
- a sorted list of events from latest events to older events.
-