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 void
clear()
Activation
dequeue()
void
dequeue(Activation activation)
void
enqueue(Activation activation)
Activation[]
getAndClear()
boolean
isEmpty()
Activation
peek()
void
readExternal(ObjectInput in)
int
size()
Object[]
toArray(Object[] a)
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
enqueue
public void enqueue(Activation activation)
-
dequeue
public Activation dequeue()
-
dequeue
public void dequeue(Activation activation)
-
getAndClear
public Activation[] getAndClear()
- Specified by:
getAndClear
in interfaceQueue
-
peek
public Activation peek()
-
-