|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface JPPFQueue
Implementation of a generic non-blocking queue, to allow asynchronous access from a large number of threads.
| Method Summary | |
|---|---|
void |
addBundle(BundleWrapper bundleWrapper)
Add an object to the queue, and notify all listeners about it. |
int |
getMaxBundleSize()
Get the maximum bundle size for the bundles present in the queue. |
boolean |
isEmpty()
Determine whether the queue is empty or not. |
BundleWrapper |
nextBundle(BundleWrapper bundleWrapper,
int nbTasks)
Get the next object in the queue. |
BundleWrapper |
nextBundle(int nbTasks)
Get the next object in the queue. |
BundleWrapper |
removeBundle(BundleWrapper bundleWrapper)
Remove the specified bundle from the queue. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
void addBundle(BundleWrapper bundleWrapper)
bundleWrapper - the object to add to the queue.BundleWrapper nextBundle(int nbTasks)
nbTasks - the maximum number of tasks to get out of the bundle.
BundleWrapper nextBundle(BundleWrapper bundleWrapper,
int nbTasks)
bundleWrapper - the bundle to either remove or extract a sub-bundle from.nbTasks - the maximum number of tasks to get out of the bundle.
boolean isEmpty()
int getMaxBundleSize()
BundleWrapper removeBundle(BundleWrapper bundleWrapper)
bundleWrapper - the bundle to remove.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||