rina.rib.util
Class EventQueue
java.lang.Object
rina.rib.util.EventQueue
public class EventQueue
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventQueue
public EventQueue()
- Constructor
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