|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.transport.RequestBlocker
RequestBlocker
once block() is called all calls to check() will block. If interrupt() is called then all calls to check() with that
id will thrown interrupted exceptions when release() is called and until clear() is called. All non interrupted
calls to check() will return normally when release is called.
Constructor Summary | |
RequestBlocker()
|
Method Summary | |
void |
block()
Start blocking all check requests |
void |
check(Object aId)
Blocking call to check if we are blocked or not. |
void |
clear()
Clear interrupted list so that all checks can proceed optimally |
void |
interrupt(Object aId)
Mark this Id to be interrupted |
void |
release()
Release all blocked requests |
void |
releaseInterrupted()
Release only interrupted blocked requests |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RequestBlocker()
Method Detail |
public void check(Object aId) throws InterruptedException
InterruptedException
public void block()
public void interrupt(Object aId)
public void release()
public void releaseInterrupted()
public void clear()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |