org.granite.gravity
Class Subscription

java.lang.Object
  extended by org.granite.gravity.Subscription
All Implemented Interfaces:
Serializable

public class Subscription
extends Object
implements Serializable

Author:
William DRAI
See Also:
Serialized Form

Constructor Summary
Subscription(Channel channel, String destination, String subTopicId, String subscriptionId, boolean noLocal)
           
 
Method Summary
 boolean deliver(Channel fromClient, AsyncMessage message)
           
 boolean equals(Object o)
           
 Channel getChannel()
           
 String getSubscriptionId()
           
 String getSubTopicId()
           
 Message getUnsubscribeMessage()
           
 void setSelector(String selector)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription(Channel channel,
                    String destination,
                    String subTopicId,
                    String subscriptionId,
                    boolean noLocal)
Method Detail

getChannel

public Channel getChannel()

getSubTopicId

public String getSubTopicId()

getSubscriptionId

public String getSubscriptionId()

setSelector

public void setSelector(String selector)

deliver

public boolean deliver(Channel fromClient,
                       AsyncMessage message)

getUnsubscribeMessage

public Message getUnsubscribeMessage()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object