org.openorb.notify.queue

Class FifoOrderer

public class FifoOrderer extends Object implements Orderer

This orderer implements a Fifo ( First-in first-out mechanism ).

Author: Olivier Modica Shawn Boyce

Constructor Summary
FifoOrderer()
Default constructor with an initial capacity of 10 and a capacity increment of 10
FifoOrderer(int initialCapacity)
Constructor with a specified initial capacity.
Method Summary
intgetQueueSize()
Get the current queue size.
ObjectpullEvent()
Invoked to pull an event from the queue.
voidpushEvent(Object event, Short priorityKey, Long timeoutKey)
Invoked to push an event into the queue with respect to order.

Constructor Detail

FifoOrderer

public FifoOrderer()
Default constructor with an initial capacity of 10 and a capacity increment of 10

FifoOrderer

public FifoOrderer(int initialCapacity)
Constructor with a specified initial capacity.

Method Detail

getQueueSize

public int getQueueSize()
Get the current queue size.

pullEvent

public Object pullEvent()
Invoked to pull an event from the queue.

pushEvent

public void pushEvent(Object event, Short priorityKey, Long timeoutKey)
Invoked to push an event into the queue with respect to order.

Parameters: priorityKey not used timeoutKey not used