org.granite.gravity.jetty8
Class ContinuationChannel

java.lang.Object
  extended by org.granite.gravity.AbstractChannel
      extended by org.granite.gravity.jetty8.ContinuationChannel
All Implemented Interfaces:
Channel

public class ContinuationChannel
extends AbstractChannel

Author:
William DRAI

Field Summary
 
Fields inherited from class org.granite.gravity.AbstractChannel
clientType, factory, gravity, httpReceiver, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, sessionId, subscriptions, udpReceiver
 
Constructor Summary
ContinuationChannel(Gravity gravity, String id, ContinuationChannelFactory factory, String clientType)
           
 
Method Summary
protected  AsyncHttpContext acquireAsyncHttpContext()
           
 void close()
           
 void destroy()
           
protected  boolean hasAsyncHttpContext()
           
 boolean isLocal()
           
 void receive(AsyncMessage message)
           
protected  void releaseAsyncHttpContext(AsyncHttpContext context)
           
 void resume()
           
 void setContinuation(Continuation continuation)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContinuationChannel

public ContinuationChannel(Gravity gravity,
                           String id,
                           ContinuationChannelFactory factory,
                           String clientType)
Method Detail

setContinuation

public void setContinuation(Continuation 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