Package org.drools.core.util
Class ArrayQueue
- java.lang.Object
-
- org.drools.core.util.ArrayQueue
-
- All Implemented Interfaces:
Externalizable,Serializable,Queue
public class ArrayQueue extends Object implements Queue, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Activationdequeue()voiddequeue(Activation activation)voidenqueue(Activation activation)Activation[]getAndClear()booleanisEmpty()Activationpeek()voidreadExternal(ObjectInput in)intsize()Object[]toArray(Object[] a)voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
enqueue
public void enqueue(Activation activation)
-
dequeue
public Activation dequeue()
-
dequeue
public void dequeue(Activation activation)
-
getAndClear
public Activation[] getAndClear()
- Specified by:
getAndClearin interfaceQueue
-
peek
public Activation peek()
-
-