|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.automaton.Queue
public class Queue
This class is an implementation of a FIFO queue.
Field Summary | |
---|---|
protected java.lang.Object[] |
buf
|
protected int |
count
|
protected int |
in
|
protected int |
out
|
protected int |
size
|
Constructor Summary | |
---|---|
Queue()
Creates an EventQueue object. |
|
Queue(int size)
Creates an EventQueue given the value of the size property. |
Method Summary | |
---|---|
java.lang.Object |
get()
Gets an object from the EventQueue. |
int |
getCount()
Returns the value of the count property. |
void |
put(java.lang.Object obj)
Puts an object into the EventQueue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object[] buf
protected int in
protected int out
protected int count
protected int size
Constructor Detail |
---|
public Queue()
public Queue(int size)
size
- intMethod Detail |
---|
public java.lang.Object get() throws java.lang.InterruptedException
get
in interface Buffer
java.lang.InterruptedException
public int getCount()
public void put(java.lang.Object obj) throws java.lang.InterruptedException
put
in interface Buffer
obj
- java.lang.Object
java.lang.InterruptedException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |