org.granite.gravity
Interface Channel
- All Known Implementing Classes:
- AbstractChannel, AsyncChannel, ContinuationChannel, GAEChannel, GenericChannel, JBossWebChannel, TomcatChannel, WebLogicChannel
public interface Channel
- Author:
- Franck WOLFF
getId
String getId()
getGravity
Gravity getGravity()
addSubscription
Subscription addSubscription(String destination,
String subTopicId,
String subscriptionId,
boolean noLocal)
getSubscriptions
Collection<Subscription> getSubscriptions()
removeSubscription
Subscription removeSubscription(String subscriptionId)
publish
void publish(AsyncPublishedMessage message)
throws MessagePublishingException
- Throws:
MessagePublishingException
hasPublishedMessage
boolean hasPublishedMessage()
runPublish
boolean runPublish()
receive
void receive(AsyncMessage message)
throws MessageReceivingException
- Throws:
MessageReceivingException
hasReceivedMessage
boolean hasReceivedMessage()
runReceive
boolean runReceive()
runReceived
boolean runReceived(AsyncHttpContext asyncHttpContext)
destroy
void destroy()