org.openorb.notify.queue

Interface Orderer

public interface Orderer

An orderer orders events in a well defined manner.

Author: Olivier Modica

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.

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.