org.granite.gravity.gae
Class GAEChannel
java.lang.Object
org.granite.gravity.gae.GAEChannel
- All Implemented Interfaces:
- Serializable, Channel
public class GAEChannel
- extends Object
- implements Channel, Serializable
- Author:
- William DRAI
- See Also:
- Serialized Form
id
protected final String id
getId
public String getId()
- Specified by:
getId in interface Channel
getGravity
public Gravity getGravity()
- Specified by:
getGravity in interface Channel
destroy
public void destroy()
- Specified by:
destroy in interface Channel
publish
public void publish(AsyncPublishedMessage message)
throws MessagePublishingException
- Specified by:
publish in interface Channel
- Throws:
MessagePublishingException
receive
public void receive(AsyncMessage message)
throws MessageReceivingException
- Specified by:
receive in interface Channel
- Throws:
MessageReceivingException
takeMessages
public List<Message> takeMessages()
addSubscription
public Subscription addSubscription(String destination,
String subTopicId,
String subscriptionId,
boolean noLocal)
- Specified by:
addSubscription in interface Channel
getSubscriptions
public Collection<Subscription> getSubscriptions()
- Specified by:
getSubscriptions in interface Channel
removeSubscription
public Subscription removeSubscription(String subscriptionId)
- Specified by:
removeSubscription in interface Channel
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
hasPublishedMessage
public boolean hasPublishedMessage()
- Specified by:
hasPublishedMessage in interface Channel
runPublish
public boolean runPublish()
- Specified by:
runPublish in interface Channel
hasReceivedMessage
public boolean hasReceivedMessage()
- Specified by:
hasReceivedMessage in interface Channel
runReceive
public boolean runReceive()
- Specified by:
runReceive in interface Channel
runReceived
public boolean runReceived(AsyncHttpContext asyncHttpContext)
- Specified by:
runReceived in interface Channel
run
public void run()