public final class BlockingStack
extends java.lang.Object
| Constructor and Description |
|---|
BlockingStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Checks to see if the stack is empty.
|
java.lang.Object |
peek()
Return, but do not remove, the object at the top of the stack.
|
java.lang.Object |
pop()
Return and remove the object at the top of the stack.
|
java.lang.Object |
pop(long msec)
Return and remove the object at the top of the stack only if it is
available within the specified number of milliseconds, otherwise return
null.
|
void |
push(java.lang.Object item)
Push an object onto the stack.
|
public boolean isEmpty()
public java.lang.Object peek()
public java.lang.Object pop()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.Object pop(long msec)
throws java.lang.InterruptedException
msec - to wait for an object before returning null.java.lang.InterruptedExceptionpublic void push(java.lang.Object item)
throws java.lang.InterruptedException
item - to be pushed onto the stack.java.lang.InterruptedExceptionCopyright © 2001-2014 Jaybird (Firebird JDBC/JCA) team. All rights reserved.