|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.fissuresUtil.cache.AbstractQueue
public abstract class AbstractQueue
Constructor Summary | |
---|---|
AbstractQueue()
|
Method Summary | |
---|---|
int |
getLength()
returns the length of the queue. |
boolean |
getSourceAlive()
returns true if the source i.e., the thread which pushes objects into the queue is alive, else returns false. |
java.lang.Object |
pop()
pops the first element of the queue. |
void |
push(java.lang.Object obj)
inserts the obj at the end of the queue. |
void |
setSourceAlive(boolean value)
sets if the source i.e., the thread which pushes objects into the queue is alive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractQueue()
Method Detail |
---|
public java.lang.Object pop()
java.lang.Object
valuepublic void push(java.lang.Object obj)
obj
- a java.lang.Object
value to be inserted into the queue.public int getLength()
int
valuepublic void setSourceAlive(boolean value)
value
- a boolean
valuepublic boolean getSourceAlive()
boolean
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |