protected class RexxAndJava.SyncPutGet
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SyncPutGet() |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
get(long millis)
Get an object from the vector.
|
(package private) void |
put(java.lang.Object o,
int priority)
Adds an object to the vector and makes sure that waiting threads
are notified.
|
java.lang.Object get(long millis) throws java.lang.InterruptedException
millis
- time to wait in milliseconds, if 0 waits until an object becomes available.null
, if
empty.java.lang.InterruptedException
void put(java.lang.Object o, int priority)
o
- object to add to the vector.priority
- an integer value indicating the priority of the posted
event, one of:
2
": high ('alarm level') priority.
1
": normal (default) priority, and
0
": low ('batch level') priority,