|
||||||||||
| 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 |
lockEvent(String ownerId,
Event event)
Lock an event for processing by the given owner |
Event |
nextEvent(long latestScheduledTime,
long latestStartTime)
Retrieve the next event in the queue. |
Event |
putEvent(Event event)
Adds an event to the provider. |
Event |
updateEvent(Event event)
Update an event in the queue |
| 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(long latestScheduledTime,
long latestStartTime)
owner ID and
start time atomically.
latestScheduledTime - the event scheduled time must not be greater than this
Event lockEvent(String ownerId,
Event event)
ownerId - the lock owner
boolean deleteEvent(Event event)
event - the event to delete
Event putEvent(Event event)
event - the event to add (the event ID must be nullEvent updateEvent(Event event)
event - the event to update (the event ID must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||