public class GAEChannel extends java.lang.Object implements Channel, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
clientType |
protected GAEChannelFactory |
factory |
protected GAEGravity |
gravity |
protected java.lang.String |
id |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addSubscription(java.lang.String destination,
java.lang.String subTopicId,
java.lang.String subscriptionId,
boolean noLocal) |
void |
close() |
void |
destroy(boolean timeout) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientType() |
GAEChannelFactory |
getFactory() |
GAEGravity |
getGravity() |
java.lang.String |
getId() |
java.util.Collection<Subscription> |
getSubscriptions() |
java.security.Principal |
getUserPrincipal() |
int |
hashCode() |
boolean |
hasPublishedMessage() |
boolean |
hasReceivedMessage() |
boolean |
isAuthenticated() |
boolean |
isConnected() |
void |
publish(AsyncPublishedMessage message) |
void |
receive(AsyncMessage message) |
Subscription |
removeSubscription(java.lang.String subscriptionId) |
void |
run() |
boolean |
runPublish() |
boolean |
runReceive() |
boolean |
runReceived(AsyncHttpContext asyncHttpContext) |
void |
setUserPrincipal(java.security.Principal principal) |
java.util.List<Message> |
takeMessages() |
java.lang.String |
toString() |
protected final java.lang.String id
protected final java.lang.String clientType
protected final GAEGravity gravity
protected final GAEChannelFactory factory
public java.lang.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 java.util.List<Message> takeMessages()
public Subscription addSubscription(java.lang.String destination, java.lang.String subTopicId, java.lang.String subscriptionId, boolean noLocal)
addSubscription in interface Channelpublic java.util.Collection<Subscription> getSubscriptions()
getSubscriptions in interface Channelpublic Subscription removeSubscription(java.lang.String subscriptionId)
removeSubscription in interface Channelpublic boolean isConnected()
isConnected in interface Channelpublic boolean isAuthenticated()
isAuthenticated in interface Channelpublic java.security.Principal getUserPrincipal()
getUserPrincipal in interface Channelpublic void setUserPrincipal(java.security.Principal principal)
setUserPrincipal in interface Channelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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()