|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.droids.queue.QueueBean
org.apache.droids.queue.Simple
public class Simple
Field Summary |
---|
Fields inherited from class org.apache.droids.queue.QueueBean |
---|
log |
Constructor Summary | |
---|---|
Simple()
Simple queue constructor. |
Method Summary | |
---|---|
Task |
getTask(String id)
Return the task that is identified with the given id |
boolean |
hasNext()
Do we have more task waiting for service |
void |
init(Task[] initialTask)
Create the initial task list as queue |
void |
merge(Task[] filterLinks)
Merge a given list of tasks with the current queue. |
Task |
next()
Return the next task that is waiting for service |
int |
totalSize()
How many task do we have left in the queue. |
Methods inherited from class org.apache.droids.queue.QueueBean |
---|
acceptDepth, acceptSize, currentSize, getCurrentSize, getDoneTasks, getMaxDepth, getMaxSize, getToDoTasks, setCurrentSize, setDoneTasks, setMaxDepth, setMaxSize, setToDoTasks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Simple()
Method Detail |
---|
public Task getTask(String id)
Queue
getTask
in interface Queue
id
- of the task we want
public int totalSize()
Queue
totalSize
in interface Queue
public void init(Task[] initialTask)
Queue
init
in interface Queue
initialTask
- initial list of taskspublic boolean hasNext()
Queue
hasNext
in interface Queue
public void merge(Task[] filterLinks)
Queue
merge
in interface Queue
filterLinks
- the list of task that we want to add to the queuepublic Task next()
Queue
next
in interface Queue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |