org.openorb.notify.queue

Class LifoOrderer

public class LifoOrderer extends Object implements Orderer

This orderer implements a Lifo ( Last-in last-out ) mechanism.

Author: Olivier Modica

Constructor Summary
LifoOrderer()
Default constructor.
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

LifoOrderer

public LifoOrderer()
Default constructor.

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