| java.lang.Object org.cougaar.util.WaitQueue
WaitQueue | class WaitQueue (Code) | | Implement an asynchronous wait/notify map with value pass-through, selected by an opaque key.
|
getKey | Object getKey()(Code) | | Construct a key to be used in this wait queue *
|
trigger | void trigger(Object key, Object value)(Code) | | Activate any thread(s) which are waiting for a response from the key *
|
waitFor | Object waitFor(Object key, long timeout) throws InterruptedException(Code) | | Block the current thread until there is a triggerKey has been called
on the referenced key.
Returns immediately if the key is unknown or has previously been triggered.
Parameters: key - The key as returned by #getKey() Parameters: timeout - How long to wait or 0 (forever) |
wouldBlock | boolean wouldBlock(Object key)(Code) | | Return true IFF waitFor(key) call would have blocked for some amount of time *
|
|
|