public interface EventService
events.
Note that the next event is the event that should be processed
next and not necessarily the event at the head of the queue.| Modifier and Type | Method and Description |
|---|---|
boolean |
clear()
Clears all recorded data
|
long |
count() |
boolean |
deleteEvent(Event event)
Delete an event from the provider.
|
Event |
getEvent(String id)
Retrieve an event by ID
|
List<Event> |
getEvents(int skip,
int limit)
Only useful for testing: Retrieve all events with paging
|
Event |
nextEvent(String driverId,
long latestScheduledTime)
Retrieve the next event in the queue.
|
String |
putEvent(Event event)
Adds an event to the provider.
|
long count()
String putEvent(Event event)
event - the event to add (the event ID must be nullEvent getEvent(String id)
id - the ID of the event as given in putList<Event> getEvents(int skip, int limit)
Event nextEvent(String driverId, long latestScheduledTime)
driverId - the ID of the driver performing the search. When supplied, only events
that are assigned to the driver are fetched; when null) any
other driver's events can be fetched as well. Not that this is
independent of data afinity, which is always respected here.latestScheduledTime - the maximum scheduled time for eventsrespectDataAfinity - true if the fetch should only fetch events bound to the current
test run instance.boolean deleteEvent(Event event)
event - the event to deleteboolean clear()
Copyright © 2005–2018 Alfresco Software. All rights reserved.