com.virtualweaver.xotics.dialect.xape.engine
Class XapQueue

java.lang.Object
  extended bycom.virtualweaver.xotics.dialect.xape.engine.XapQueue

public final class XapQueue
extends java.lang.Object

This is the message queue used to receive every XapResponse object.

Version:
2.1

Constructor Summary
XapQueue()
          The unique constructor.
 
Method Summary
 XapMessage getMessage(long timeout)
          Method to receive a message.
 void putMessage(XapMessage o)
          Method to send a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XapQueue

public XapQueue()
The unique constructor.

Method Detail

putMessage

public void putMessage(XapMessage o)
Method to send a message. This method should not be used by the developper.

Parameters:
o - a message object to put into the queue.

getMessage

public XapMessage getMessage(long timeout)
Method to receive a message. Param timeout indicates how long the message must be waited.

Parameters:
timeout - a duration in milliseconds. Special value -1 means no limit, 0 means non blocking
Returns:
the next response message or null if no meesage in the queue.