org.granite.gravity.generic
Class GenericChannel
java.lang.Object
org.granite.gravity.AbstractChannel
org.granite.gravity.generic.GenericChannel
- All Implemented Interfaces:
- Channel
public class GenericChannel
- extends AbstractChannel
- Author:
- William DRAI
| Fields inherited from class org.granite.gravity.AbstractChannel |
clientType, factory, gravity, httpReceiver, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, sessionId, subscriptions, udpReceiver |
| Methods inherited from class org.granite.gravity.AbstractChannel |
addSubscription, createUdpReceiver, destroy, equals, getClientType, getFactory, getGravity, getId, getSerializerContentType, getSubscriptions, hashCode, hasPublishedMessage, hasReceivedMessage, newSerializer, publish, queueReceiver, removeSubscription, runPublish, runReceive, runReceived, toString |
GenericChannel
public GenericChannel(Gravity gravity,
String id,
GenericChannelFactory factory,
String clientType)
setContinuation
public void setContinuation(WaitingContinuation continuation)
close
public void close()
resume
public void resume()
receive
public void receive(AsyncMessage message)
throws MessageReceivingException
- Specified by:
receive in interface Channel- Overrides:
receive in class AbstractChannel
- Throws:
MessageReceivingException
hasAsyncHttpContext
protected boolean hasAsyncHttpContext()
- Specified by:
hasAsyncHttpContext in class AbstractChannel
releaseAsyncHttpContext
protected void releaseAsyncHttpContext(AsyncHttpContext context)
- Specified by:
releaseAsyncHttpContext in class AbstractChannel
acquireAsyncHttpContext
protected AsyncHttpContext acquireAsyncHttpContext()
- Specified by:
acquireAsyncHttpContext in class AbstractChannel
isLocal
public boolean isLocal()
destroy
public void destroy()
- Overrides:
destroy in class AbstractChannel