|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.asyncqueue.TaskQueue.QueueMonitor
public abstract static class TaskQueue.QueueMonitor
Notification mechanism which will be invoked when
TaskQueue.releaseSpace(int) or TaskQueue.releaseSpaceAndNotify(int)
is called.
| Constructor Summary | |
|---|---|
TaskQueue.QueueMonitor()
|
|
| Method Summary | |
|---|---|
abstract void |
onNotify()
Action(s) to perform when the current queue space meets the conditions mandated by shouldNotify(). |
abstract boolean |
shouldNotify()
This method will be invoked to determine if onNotify() should
be called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskQueue.QueueMonitor()
| Method Detail |
|---|
public abstract void onNotify()
throws java.io.IOException
shouldNotify().
java.io.IOExceptionpublic abstract boolean shouldNotify()
onNotify() should
be called. It's recommended that implementations of this method be
as light-weight as possible as this method may be invoked multiple
times.
true if onNotify() should be invoked on
this QueueMonitor at the point in time shouldNotify
was called, otherwise returns false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||