ch.busyboxes.agoo.dao
Interface WatcherTaskDAO

All Known Implementing Classes:
WatcherTaskDAOImpl

public interface WatcherTaskDAO

DAO for accessing watcher tasks

Author:
julien@busyboxes.ch

Method Summary
 void createNewTask(TaskType taskType, java.lang.Long targetId)
          Creates a new task
 WatcherTask fetchNextPendingTask()
          Returns the next pending task
 void removeTask(WatcherTask watcherTask)
          Removes the following task
 void updateTask(WatcherTask watcherTask)
          Updates the given task
 

Method Detail

fetchNextPendingTask

WatcherTask fetchNextPendingTask()
Returns the next pending task

Returns:
the next pending task

createNewTask

void createNewTask(TaskType taskType,
                   java.lang.Long targetId)
Creates a new task

Parameters:
taskType - the new task's type
targetId - the new task's target ID, if any

updateTask

void updateTask(WatcherTask watcherTask)
Updates the given task

Parameters:
watcherTask - the task

removeTask

void removeTask(WatcherTask watcherTask)
Removes the following task

Parameters:
watcherTask - the task to be removed


Copyright © 2009. All Rights Reserved.