org.jdesktop.wonderland.client.cell
Class CellChannelConnection.CellMessageDelivery

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.CellChannelConnection.CellMessageDelivery
Enclosing class:
CellChannelConnection

protected static class CellChannelConnection.CellMessageDelivery
extends java.lang.Object

Deliver messages to a particular cell. This class may delay the messages or send them directly, depending on the cell state.


Constructor Summary
protected CellChannelConnection.CellMessageDelivery()
           
 
Method Summary
protected  void deliver(CellMessage message)
          Deliver a message to this cell.
protected  void deliverDelayedMessages()
          Deliver any delayed messages to this cell.
protected  CellChannelConnection.MessageReceiver getMessageReceiver()
          Get the message receiver for this cell
protected  void setMessageReceiver(CellChannelConnection.MessageReceiver receiver)
          Set the receiver for this cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellChannelConnection.CellMessageDelivery

protected CellChannelConnection.CellMessageDelivery()
Method Detail

deliver

protected void deliver(CellMessage message)
Deliver a message to this cell. If the cell is not fully set up yet, this object will delay the message and deliver it when the cell is entirely set up.


setMessageReceiver

protected void setMessageReceiver(CellChannelConnection.MessageReceiver receiver)
Set the receiver for this cell. This is done when the cell's status becomes INACTIVE, indicating it is ready to start receiving messages.

Parameters:
receiver - the message receiver to send messages to, or null to start delaying messages

getMessageReceiver

protected CellChannelConnection.MessageReceiver getMessageReceiver()
Get the message receiver for this cell

Returns:
the message receiver for this cell.

deliverDelayedMessages

protected void deliverDelayedMessages()
Deliver any delayed messages to this cell.



Open Wonderland - http://openwonderland.org