org.granite.gravity.gae
Class GAETopic

java.lang.Object
  extended by org.granite.gravity.gae.GAETopic

public class GAETopic
extends Object

Adapted from Greg Wilkins code (Jetty).

Author:
William DRAI

Constructor Summary
GAETopic(String topicId, GAEServiceAdapter serviceAdapter)
           
 
Method Summary
 void addChild(GAETopic topic)
           
 GAETopic getChild(GAETopicId topicId)
           
 String getId()
           
 GAETopicId getTopicId()
           
 void publish(GAETopicId to, Channel fromChannel, AsyncMessage msg)
           
 void subscribe(Channel channel, String destination, String subscriptionId, String selector, boolean noLocal)
           
 String toString()
           
 void unsubscribe(Channel channel, String subscriptionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GAETopic

public GAETopic(String topicId,
                GAEServiceAdapter serviceAdapter)
Method Detail

getId

public String getId()

getTopicId

public GAETopicId getTopicId()

getChild

public GAETopic getChild(GAETopicId topicId)

addChild

public void addChild(GAETopic topic)

subscribe

public void subscribe(Channel channel,
                      String destination,
                      String subscriptionId,
                      String selector,
                      boolean noLocal)

unsubscribe

public void unsubscribe(Channel channel,
                        String subscriptionId)

publish

public void publish(GAETopicId to,
                    Channel fromChannel,
                    AsyncMessage msg)

toString

public String toString()
Overrides:
toString in class Object