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 |
lockEvent(Event event,
String lockOwner)
Lock an event for processing by the given owner
|
Event |
nextEvent(String dataOwner,
long latestScheduledTime,
long latestQueueTime)
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 dataOwner, long latestScheduledTime, long latestQueueTime)
dataOwner - the identifier of the client queuing eventslatestQueueTime - the event scheduled time must not be greater than thisEvent lockEvent(Event event, String lockOwner)
event - the event to locklockOwner - the lock ownerEvent getEvent(String id)
id - the event IDboolean deleteEvent(Event event)
event - the event to deleteCopyright © 2012. All Rights Reserved.