rina.rib.util
Class EventQueue

java.lang.Object
  extended by rina.rib.util.EventQueue

public class EventQueue
extends java.lang.Object


Constructor Summary
EventQueue()
          Constructor
 
Method Summary
 void addReceive(Event event)
          add a message to the queue of received message
 void addSend(Event event)
          add a message to the queue of sent messages
 Event getReceive()
           
 java.util.Queue<Event> getReceiveQueue()
           
 Event getSend()
           
 java.util.Queue<Event> getSendQueue()
           
 void setReceiveQueue(java.util.Queue<Event> receiveQueue)
           
 void setSendQueue(java.util.Queue<Event> sendQueue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventQueue

public EventQueue()
Constructor

Method Detail

addReceive

public void addReceive(Event event)
add a message to the queue of received message

Parameters:
message -

getReceive

public Event getReceive()
Returns:
the polled message from the queue

addSend

public void addSend(Event event)
add a message to the queue of sent messages

Parameters:
data -

getSend

public Event getSend()
Returns:
the message polled from the queue of messages to send

getReceiveQueue

public java.util.Queue<Event> getReceiveQueue()
Returns:
the Queue of received messages

setReceiveQueue

public void setReceiveQueue(java.util.Queue<Event> receiveQueue)
Parameters:
receiveQueue - the receiveQueue to set

getSendQueue

public java.util.Queue<Event> getSendQueue()
Returns:
the sendQueue

setSendQueue

public void setSendQueue(java.util.Queue<Event> sendQueue)
Parameters:
sendQueue - the sendQueue to set