org.cometd.server.continuation
Class ContinuationClient
java.lang.Object
org.cometd.server.ClientImpl
org.cometd.server.continuation.ContinuationClient
- All Implemented Interfaces:
- Client
public class ContinuationClient
- extends ClientImpl
Extension of ClientImpl that uses Continuations to
resume clients waiting for messages. Continuation clients are used for
remote clients and have removed if they are not accessed within
an idle timeout (@link ContinuationBayeux#_clientTimer).
- Author:
- gregw
|
Field Summary |
org.eclipse.jetty.util.thread.Timeout.Task |
_timeout
|
| Methods inherited from class org.cometd.server.ClientImpl |
addExtension, addListener, addSubscription, deliver, deliverLazy, disconnect, doDeliverListeners, doDelivery, endBatch, equals, getAdvice, getBrowserId, getConnectionType, getId, getLag, getMaxQueue, getMessages, getQueue, getTimeout, hasMessages, hasNonLazyMessages, isExpired, isMetaConnectDeliveryOnly, removeListener, removeSubscription, responded, responsePending, returnMessages, setAdvice, setBrowserId, setConnectionType, setId, setLag, setMaxQueue, setMetaConnectDeliveryOnly, setTimeout, startBatch, takeMessages, toString, unsubscribeAll |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_timeout
public transient org.eclipse.jetty.util.thread.Timeout.Task _timeout
ContinuationClient
protected ContinuationClient(ContinuationBayeux bayeux)
setContinuation
public void setContinuation(org.eclipse.jetty.continuation.Continuation continuation)
getContinuation
public org.eclipse.jetty.continuation.Continuation getContinuation()
resume
public void resume()
- Description copied from class:
ClientImpl
- Called by deliver to resume anything waiting on this client.
- Overrides:
resume in class ClientImpl
isLocal
public boolean isLocal()
- Specified by:
isLocal in interface Client- Overrides:
isLocal in class ClientImpl
access
public void access()
lastAccessed
public long lastAccessed()
remove
public void remove(boolean wasTimeout)
- Overrides:
remove in class ClientImpl
Copyright © 2009 Dojo Foundation. All Rights Reserved.