Class RemoteUserSessionService

    • Field Detail

      • USER_CONNECTED_WITH_TENANT_TEMPLATE

        protected static final String USER_CONNECTED_WITH_TENANT_TEMPLATE
        See Also:
        Constant Field Values
      • USER_DISCONNECTED_WITH_TENANT_TEMPLATE

        protected static final String USER_DISCONNECTED_WITH_TENANT_TEMPLATE
        See Also:
        Constant Field Values
      • logger

        protected final org.slf4j.Logger logger
      • userStatusBaseUrl

        protected final String userStatusBaseUrl
    • Constructor Detail

      • RemoteUserSessionService

        public RemoteUserSessionService​(RestTemplate restTemplate,
                                        String userStatusBaseUrl)
    • Method Detail

      • userConnected

        public void userConnected​(String userId,
                                  String tenantId,
                                  String sessionId)
        Description copied from interface: UserSessionService
        Method invoked when the user has been connected in real time to the application
        Specified by:
        userConnected in interface UserSessionService
        Parameters:
        userId - the id of the user that has connected
        tenantId - the tenant id for the connection
        sessionId - the id of the session that the user is connected to
      • userDisconnected

        public void userDisconnected​(String userId,
                                     String tenantId,
                                     String sessionId)
        Description copied from interface: UserSessionService
        Method invoked when the user has been disconnected from a single session the application
        Specified by:
        userDisconnected in interface UserSessionService
        Parameters:
        userId - the id of the user that has been disconnected
        tenantId - the tenant id for the connection
        sessionId - the session id that the user disconnected from