org.granite.gravity.adapters
Class Topic

java.lang.Object
  extended by org.granite.gravity.adapters.Topic

public class Topic
extends Object

Adapted from Greg Wilkins code (Jetty).

Author:
William DRAI

Constructor Summary
Topic(String topicId, SimpleServiceAdapter serviceAdapter)
           
 
Method Summary
 void addChild(Topic topic)
           
 Topic getChild(TopicId topicId)
           
 String getId()
           
 TopicId getTopicId()
           
 void publish(TopicId 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

Topic

public Topic(String topicId,
             SimpleServiceAdapter serviceAdapter)
Method Detail

getId

public String getId()

getTopicId

public TopicId getTopicId()

getChild

public Topic getChild(TopicId topicId)

addChild

public void addChild(Topic 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(TopicId to,
                    Channel fromChannel,
                    AsyncMessage msg)

toString

public String toString()
Overrides:
toString in class Object