public class Consumer extends Object
| Constructor and Description |
|---|
Consumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object o) |
Object |
get()
returns the next element of the FIFO
|
int |
getFillThreshold() |
int |
getLastIndex() |
boolean |
isEmpty() |
boolean |
isEOF() |
void |
setEOF(boolean eof) |
void |
setFillThreshold(int fillThreshold) |
void |
setLastIndex(int lastIndex) |
int |
size() |
public boolean isEOF()
public void setEOF(boolean eof)
eof - The EOF to set.public int getLastIndex()
public void setLastIndex(int lastIndex)
lastIndex - The lastIndex to set.public void add(Object o)
o - the object to add to the queuepublic Object get()
public boolean isEmpty()
public int size()
public int getFillThreshold()
public void setFillThreshold(int fillThreshold)
fillThreshold - The fillThreshold to set.Copyright © 2013. All rights reserved.