| Contents | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||
java.lang.Object
|
+----jsync.Queue
| Constructor Summary | |
| Queue()
|
|
| Method Summary | |
| java.lang.Object | get()
|
| java.lang.Object | get(long timeout)
timeout miliseconds until queue becomes
not empty and take object from the queue.
|
| boolean | isEmpty()
|
| void | put(java.lang.Object obj)
|
| Methods inherited from class java.lang.Object |
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Queue()
| Method Detail |
public void put(java.lang.Object obj)
public java.lang.Object get()
public java.lang.Object get(long timeout)
timeout miliseconds until queue becomes
not empty and take object from the queue.
timeout
- the maximum time to wait in milliseconds.
null otherwisepublic boolean isEmpty()
| Contents | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||