|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mdw.sandStorm.core.QueueThresholdPredicate
This enqueue predicate implements a simple threshold for the size of the queue.
Constructor Summary | |
QueueThresholdPredicate(SinkIF sink,
int threshold)
Create a new QueueThresholdPredicate for the given sink and threshold. |
Method Summary | |
boolean |
accept(QueueElementIF qel)
Returns true if the given element can be accepted into the queue. |
int |
getThreshold()
Return the current queue threshold. |
void |
setThreshold(int threshold)
Set the current queue threshold. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public QueueThresholdPredicate(SinkIF sink, int threshold)
Method Detail |
public boolean accept(QueueElementIF qel)
accept
in interface EnqueuePredicateIF
mdw.sandStorm.api.EnqueuePredicateIF
element
- The QueueElementIF
to enqueuepublic int getThreshold()
public void setThreshold(int threshold)
|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |