|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.droids.queue.QueueBean
public class QueueBean
Simple bean that holds all information (as wrapper bean) that are needed when working with queue objects.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
QueueBean()
|
Method Summary | |
---|---|
boolean |
acceptDepth(int i)
Can we accept the new depth or would it violate the maxDepth allowed for the queue. |
boolean |
acceptSize(int i)
Can we accept the new size or would it violate the maxSize allowed for the queue. |
int |
currentSize()
Return the number of threads that are currently running. |
int |
getCurrentSize()
What is the current size of all queue items actively worked on. |
Task[] |
getDoneTasks()
Return an array of all tasks that we already finished. |
int |
getMaxDepth()
The limitation of how many loops we want to admit. |
int |
getMaxSize()
The limitation of how many queue items we want to admit. |
Task[] |
getToDoTasks()
Return an array of all tasks that we still need to finish. |
void |
setCurrentSize(int currentSize)
Set the current size of all queue items actively worked on. |
void |
setDoneTasks(Task[] doneTasks)
Set an array of all tasks that we already finished. |
void |
setMaxDepth(int maxDepth)
The limitation of how many loops items we want to admit. |
void |
setMaxSize(int maxSize)
The limitation of how many queue items we want to admit. |
void |
setToDoTasks(Task[] toDoTasks)
Set an array of all tasks that we did not finished yet and add them to the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log log
Constructor Detail |
---|
public QueueBean()
Method Detail |
---|
public int currentSize()
public Task[] getDoneTasks()
public int getMaxDepth()
public int getMaxSize()
public Task[] getToDoTasks()
public void setMaxSize(int maxSize)
maxSize
- how many queue items we want to admitpublic void setMaxDepth(int maxDepth)
maxDepth
- how many loops items we want to admitpublic boolean acceptSize(int i)
i
- new queue size
public boolean acceptDepth(int i)
i
- new depth size
public int getCurrentSize()
public void setCurrentSize(int currentSize)
currentSize
- current size of all queue items actively worked on.public void setDoneTasks(Task[] doneTasks)
doneTasks
- an array of all tasks that we already finished.public void setToDoTasks(Task[] toDoTasks)
toDoTasks
- an array of all tasks that we need to add to the queue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |