com.elvyx.engine.common
Class ObjectFIFO
java.lang.Object
com.elvyx.engine.common.ObjectFIFO
public class ObjectFIFO
- extends java.lang.Object
It is an object fifo implementation
- Since:
- 1.0
- Version:
- $Revision: 1.1 $
- Author:
- Paul Hyde
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectFIFO
public ObjectFIFO(int cap)
getCapacity
public int getCapacity()
getSize
public int getSize()
isEmpty
public boolean isEmpty()
isFull
public boolean isFull()
add
public void add(java.lang.Object obj)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
addEach
public void addEach(java.lang.Object[] list)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
remove
public java.lang.Object remove()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
removeAll
public java.lang.Object[] removeAll()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
removeAtLeastOne
public java.lang.Object[] removeAtLeastOne()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitUntilEmpty
public boolean waitUntilEmpty(long msTimeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitUntilEmpty
public void waitUntilEmpty()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitWhileEmpty
public void waitWhileEmpty()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitUntilFull
public void waitUntilFull()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitWhileFull
public void waitWhileFull()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
Copyright © 2006-2008 Armando Perdomo. All Rights Reserved.