|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventService
Interface for classes that handle persistence and retrieval of events.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 retrieve
Event nextEvent(String dataOwner,
long latestScheduledTime,
long latestQueueTime)
dataOwner - the identifier of the client queuing eventslatestQueueTime - the event scheduled time must not be greater than this
Event lockEvent(Event event,
String lockOwner)
event - the event to locklockOwner - the lock owner
Event getEvent(String id)
id - the event ID
boolean deleteEvent(Event event)
event - the event to delete
Event putEvent(Event event)
event - the event to add (the event ID must be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||