public class GAEChannel extends Object implements Channel, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientType |
protected GAEChannelFactory |
factory |
protected GAEGravity |
gravity |
protected String |
id |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addSubscription(String destination,
String subTopicId,
String subscriptionId,
boolean noLocal) |
void |
close() |
void |
destroy(boolean timeout) |
boolean |
equals(Object obj) |
String |
getClientType() |
GAEChannelFactory |
getFactory() |
GAEGravity |
getGravity() |
String |
getId() |
Collection<Subscription> |
getSubscriptions() |
int |
hashCode() |
boolean |
hasPublishedMessage() |
boolean |
hasReceivedMessage() |
void |
publish(AsyncPublishedMessage message) |
void |
receive(AsyncMessage message) |
Subscription |
removeSubscription(String subscriptionId) |
void |
run() |
boolean |
runPublish() |
boolean |
runReceive() |
boolean |
runReceived(AsyncHttpContext asyncHttpContext) |
List<Message> |
takeMessages() |
String |
toString() |
protected final String clientType
protected final GAEGravity gravity
protected final GAEChannelFactory factory
public String getClientType()
getClientType in interface Channelpublic GAEChannelFactory getFactory()
getFactory in interface Channelpublic GAEGravity getGravity()
getGravity in interface Channelpublic void publish(AsyncPublishedMessage message) throws MessagePublishingException
publish in interface ChannelMessagePublishingExceptionpublic void receive(AsyncMessage message) throws MessageReceivingException
receive in interface ChannelMessageReceivingExceptionpublic List<Message> takeMessages()
public Subscription addSubscription(String destination, String subTopicId, String subscriptionId, boolean noLocal)
addSubscription in interface Channelpublic Collection<Subscription> getSubscriptions()
getSubscriptions in interface Channelpublic Subscription removeSubscription(String subscriptionId)
removeSubscription in interface Channelpublic boolean hasPublishedMessage()
hasPublishedMessage in interface Channelpublic boolean runPublish()
runPublish in interface Channelpublic boolean hasReceivedMessage()
hasReceivedMessage in interface Channelpublic boolean runReceive()
runReceive in interface Channelpublic boolean runReceived(AsyncHttpContext asyncHttpContext)
runReceived in interface Channelpublic void run()