|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cometd.server.ClientImpl
org.atmosphere.plugin.bayeux.AtmosphereBayeuxClient
public class AtmosphereBayeuxClient
Extension of ClientImpl that uses Continuations to resume
clients waiting for messages. Continuation clients are used for remote
clients and are removed if they are not accessed within an idle timeout.
| Constructor Summary | |
|---|---|
protected |
AtmosphereBayeuxClient(AtmosphereContinuationBayeux bayeux)
|
| Method Summary | |
|---|---|
void |
access()
|
AtmosphereResource<HttpServletRequest,HttpServletResponse> |
getContinuation()
|
boolean |
isLocal()
|
long |
lastAccessed()
|
void |
lazyResume()
|
void |
remove(boolean wasTimeout)
|
void |
resume()
|
void |
setContinuation(AtmosphereResource<HttpServletRequest,HttpServletResponse> continuation)
|
| Methods inherited from class org.cometd.server.ClientImpl |
|---|
addExtension, addListener, addSubscription, deliver, deliverLazy, disconnect, doDeliverListeners, doDelivery, endBatch, equals, getAdvice, getBrowserId, getConnectionType, getId, getInterval, getLag, getMaxQueue, getMessages, getQueue, getSubscriptions, getTimeout, hasMessages, hasNonLazyMessages, isExpired, isMetaConnectDeliveryOnly, removeExtension, removeListener, removeSubscription, responded, responsePending, returnMessages, setAdvice, setBrowserId, setConnectionType, setId, setInterval, setLag, setMaxQueue, setMetaConnectDeliveryOnly, setTimeout, startBatch, takeMessages, toString, unsubscribeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AtmosphereBayeuxClient(AtmosphereContinuationBayeux bayeux)
| Method Detail |
|---|
public void setContinuation(AtmosphereResource<HttpServletRequest,HttpServletResponse> continuation)
public AtmosphereResource<HttpServletRequest,HttpServletResponse> getContinuation()
public void lazyResume()
lazyResume in class org.cometd.server.ClientImplpublic void resume()
resume in class org.cometd.server.ClientImplpublic boolean isLocal()
isLocal in interface org.cometd.ClientisLocal in class org.cometd.server.ClientImplpublic void access()
public long lastAccessed()
public void remove(boolean wasTimeout)
remove in class org.cometd.server.ClientImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||