|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.scheduler.RequestTable
Simple synchronized blocking queue of request states to be processed
Constructor Summary | |
RequestTable()
|
Method Summary | |
void |
interrupt()
Causes all threads blocking on a take() call to the object to return throwing an InterruptedException |
void |
put(RequestState aRequest)
|
int |
size()
Returns the current number of items in the queue. |
RequestState |
take()
Takes an item off the queue blocking indefinately until something is there unless interrupted. |
RequestState |
takeIfAvailable(IRequestorSession aSession)
Take an item from the queue if its session matches. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RequestTable()
Method Detail |
public final void put(RequestState aRequest)
public final RequestState take() throws InterruptedException
InterruptedException
- thrown if we are interrupted whilst waiting for an item
either a real thread.interrupt or if this queue is interruptedpublic final RequestState takeIfAvailable(IRequestorSession aSession)
public final int size()
public void interrupt()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |