com.ibm.btt.automaton
Interface Buffer
- All Known Implementing Classes:
- Queue
public interface Buffer
A generic interface for a buffer that holds any Java objects.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
java.lang.Object |
get()
Get an object from the Buffer |
void |
put(java.lang.Object obj)
Put an object into the Buffer |
COPYRIGHT
static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
get
java.lang.Object get()
throws java.lang.InterruptedException
- Get an object from the Buffer
- Returns:
- java.lang.Object
- Throws:
java.lang.InterruptedException
- Thrown when a thread is waiting, sleeping, or otherwise
paused for a long time and another thread interrupts it
using the interrupt
method in class
Thread
put
void put(java.lang.Object obj)
throws java.lang.InterruptedException
- Put an object into the Buffer
- Parameters:
obj
- java.lang.Object
- Throws:
java.lang.InterruptedException
- Thrown when a thread is waiting, sleeping, or otherwise
paused for a long time and another thread interrupts it
using the interrupt
method in class
Thread
.
(c) Copyright IBM Corporation 1998, 2009