public interface Channel
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addSubscription(String destination,
String subTopicId,
String subscriptionId,
boolean noLocal) |
void |
close() |
void |
destroy(boolean timeout) |
String |
getClientType() |
ChannelFactory<?> |
getFactory() |
Gravity |
getGravity() |
String |
getId() |
Collection<Subscription> |
getSubscriptions() |
boolean |
hasPublishedMessage() |
boolean |
hasReceivedMessage() |
void |
publish(AsyncPublishedMessage message) |
void |
receive(AsyncMessage message) |
Subscription |
removeSubscription(String subscriptionId) |
boolean |
runPublish() |
boolean |
runReceive() |
boolean |
runReceived(AsyncHttpContext asyncHttpContext) |
String getClientType()
Gravity getGravity()
ChannelFactory<?> getFactory()
Subscription addSubscription(String destination, String subTopicId, String subscriptionId, boolean noLocal)
Collection<Subscription> getSubscriptions()
Subscription removeSubscription(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)