Package org.mortbay.cometd.continuation
Class GoneUserExtension
java.lang.Object
org.mortbay.cometd.continuation.GoneUserExtension
- All Implemented Interfaces:
org.cometd.bayeux.server.BayeuxServer.Extension
public class GoneUserExtension
extends Object
implements org.cometd.bayeux.server.BayeuxServer.Extension
Ends the session of a user disabled or deleted since the handshake, on any
node, at its next connect, the request every open client sends again at each
long poll. The delivery of a message to such a session is checked by
GoneUserSessionExtension, which runs for each subscriber of a
broadcast, as a server-wide extension does not.
The check goes through EXoContinuationBayeux.isSessionUserActive(org.cometd.bayeux.server.ServerSession),
which reads the user only when the user's generation in the conversation
registry differs from the session's. A session that holds no user of the
store and a local session pass unchanged.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanrcvMeta(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerMessage.Mutable message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cometd.bayeux.server.BayeuxServer.Extension
incoming, outgoing, rcv, send, sendMeta
-
Constructor Details
-
GoneUserExtension
-
-
Method Details
-
rcvMeta
public boolean rcvMeta(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerMessage.Mutable message) - Specified by:
rcvMetain interfaceorg.cometd.bayeux.server.BayeuxServer.Extension
-