public interface Channel
| 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) |
java.lang.String |
getClientType() |
ChannelFactory<?> |
getFactory() |
GravityInternal |
getGravity() |
java.lang.String |
getId() |
java.util.Collection<Subscription> |
getSubscriptions() |
java.security.Principal |
getUserPrincipal() |
boolean |
hasPublishedMessage() |
boolean |
hasReceivedMessage() |
boolean |
isAuthenticated() |
boolean |
isConnected() |
void |
publish(AsyncPublishedMessage message) |
void |
receive(AsyncMessage message) |
Subscription |
removeSubscription(java.lang.String subscriptionId) |
boolean |
runPublish() |
boolean |
runReceive() |
boolean |
runReceived(AsyncHttpContext asyncHttpContext) |
void |
setUserPrincipal(java.security.Principal principal) |
java.lang.String getId()
java.lang.String getClientType()
boolean isAuthenticated()
boolean isConnected()
java.security.Principal getUserPrincipal()
void setUserPrincipal(java.security.Principal principal)
GravityInternal getGravity()
ChannelFactory<?> getFactory()
Subscription addSubscription(java.lang.String destination, java.lang.String subTopicId, java.lang.String subscriptionId, boolean noLocal)
java.util.Collection<Subscription> getSubscriptions()
Subscription removeSubscription(java.lang.String subscriptionId)
void publish(AsyncPublishedMessage message) throws MessagePublishingException
MessagePublishingExceptionboolean hasPublishedMessage()
boolean runPublish()
void receive(AsyncMessage message) throws MessageReceivingException
MessageReceivingExceptionboolean hasReceivedMessage()
boolean runReceive()
boolean runReceived(AsyncHttpContext asyncHttpContext)
void close()
void destroy(boolean timeout)