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 |
---|---|
long |
count() |
boolean |
deleteEvent(Event event)
Delete an event from the provider.
|
List<Event> |
findEvents(String name,
int skip,
int limit)
Find any event matching the given name, using the paging criteria
|
Event |
getEvent(String id)
Fetch a specific event by unique ID
|
Event |
nextEvent(String serverId,
long latestScheduledTime,
boolean localDataOnly)
Retrieve the next event in the queue.
|
Event |
putEvent(Event event)
Adds an event to the provider.
|
long count()
List<Event> findEvents(String name, int skip, int limit)
name
- find events with the given nameskip
- the number of results to skiplimit
- the maximum number of results to retrieveEvent nextEvent(String serverId, long latestScheduledTime, boolean localDataOnly)
serverId
- the identifier of the server taking the event (never null)latestScheduledTime
- the maximum scheduled time for eventslocalDataOnly
- true to limit searches to events that have server-specific
data matching the given server IDEvent getEvent(String id)
id
- the event IDboolean deleteEvent(Event event)
event
- the event to deleteCopyright © 2014. All rights reserved.