Interface EventService
-
public interface EventService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull EventBuilderbridgeEvent()@NotNull EventBuildercreateAdapterEvent(@NotNull String adapterId, @NotNull String protocolId)@NotNull List<Event>readEvents(@Nullable Long sinceTimestamp, @Nullable Integer limit)Reads the currently available events.
-
-
-
Method Detail
-
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
-
bridgeEvent
@NotNull @NotNull EventBuilder 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.
-
-