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 Details

  • Method Details

    • rcvMeta

      public boolean rcvMeta(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerMessage.Mutable message)
      Specified by:
      rcvMeta in interface org.cometd.bayeux.server.BayeuxServer.Extension