com.streamhub.client
Interface StreamHubGWTUpdateListener


public interface StreamHubGWTUpdateListener

This interface should be implemented by classes wanting to receive updates on subscribed topics. Listeners will receive updates after being added through one of the subscribe methods on StreamHubGWTAdapter.

See Also:
StreamHubGWTAdapter.subscribe(String, StreamHubGWTUpdateListener), StreamHubGWTAdapter.subscribe(String[], StreamHubGWTUpdateListener)

Method Summary
 void onUpdate(String topic, com.google.gwt.json.client.JSONObject update)
          The method that is called everytime an update is received on topic
 

Method Detail

onUpdate

void onUpdate(String topic,
              com.google.gwt.json.client.JSONObject update)
The method that is called everytime an update is received on topic

Parameters:
topic - the topic on which the update was sent on
update - the fields of the updated data


Copyright © 2009 StreamHub. Tutorials, news and guides can be found on the StreamHub Comet Blog.