org.cometd.oort
Class Oort.RootOortClientListener

java.lang.Object
  extended by org.cometd.oort.Oort.RootOortClientListener
All Implemented Interfaces:
java.util.EventListener, ClientListener, MessageListener, RemoveListener
Enclosing class:
Oort

protected class Oort.RootOortClientListener
extends java.lang.Object
implements RemoveListener, MessageListener

MessageListener that handles publishes to /oort/cloud


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cometd.MessageListener
MessageListener.Asynchronous, MessageListener.Synchronous
 
Constructor Summary
protected Oort.RootOortClientListener()
           
 
Method Summary
 void deliver(Client fromClient, Client toClient, Message msg)
          Called when a message is delivered to the client
 void removed(java.lang.String clientId, boolean timeout)
          This method is called after a client is removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Oort.RootOortClientListener

protected Oort.RootOortClientListener()
Method Detail

removed

public void removed(java.lang.String clientId,
                    boolean timeout)
Description copied from interface: RemoveListener
This method is called after a client is removed.

Specified by:
removed in interface RemoveListener
Parameters:
clientId - The clientId removed
timeout - True if the client was removed due to a timeout.

deliver

public void deliver(Client fromClient,
                    Client toClient,
                    Message msg)
Description copied from interface: MessageListener
Called when a message is delivered to the client

Specified by:
deliver in interface MessageListener
Parameters:
fromClient - the client that sent the message
toClient - the client that received the message
msg - the message


Copyright © 2011 Dojo Foundation. All Rights Reserved.