com.almende.eve.scheduler
Interface Scheduler

All Known Implementing Classes:
RunnableSchedulerFactory.RunnableScheduler

public interface Scheduler


Method Summary
 void cancelTask(String id)
          Cancel a scheduled task by its id
 String createTask(JSONRequest request, long delay)
          Schedule a task
 Set<String> getTasks()
          Retrieve a list with all scheduled tasks
 

Method Detail

createTask

String createTask(JSONRequest request,
                  long delay)
Schedule a task

Parameters:
request - A JSONRequest with method and params
delay - The delay in milliseconds
Returns:
taskId

cancelTask

void cancelTask(String id)
Cancel a scheduled task by its id

Parameters:
taskId -

getTasks

Set<String> getTasks()
Retrieve a list with all scheduled tasks

Returns:
taskIds


Copyright © 2013 Almende BV. All Rights Reserved.