dojox.cometd
Interface MessageListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
Listener

public interface MessageListener
extends EventListener

Message Listener Interface. Objects implementing this interface may listen for message deliverly events by calling the Client.addListener(EventListener). The MessageListener.Synchronous or MessageListener.Asynchronous nested interfaces may be used as a mixin to specify the style of delivery required. If neither subtype is specified, then the Bayeux implementation may use either method.

Author:
gregw

Nested Class Summary
static interface MessageListener.Asynchronous
          subtype of MesssageListener that requires asynchronous message delivery.
static interface MessageListener.Synchronous
          Subtype of MessageListener that requires synchronous message delivery.
 
Method Summary
 void deliver(Client fromClient, Client toClient, Message msg)
          Called when a message is delivered to the client
 

Method Detail

deliver

void deliver(Client fromClient,
             Client toClient,
             Message msg)
Called when a message is delivered to the client

Parameters:
msg - TODO


Copyright © 2013 Oracle Corporation. All Rights Reserved.