Class RemoteUserSessionService

    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteUserSessionService​(org.springframework.web.client.RestTemplate restTemplate, java.lang.String userStatusBaseUrl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void userConnected​(java.lang.String userId, java.lang.String tenantId, java.lang.String sessionId)
      Method invoked when the user has been connected in real time to the application
      void userDisconnected​(java.lang.String userId, java.lang.String tenantId, java.lang.String sessionId)
      Method invoked when the user has been disconnected from a single session the application
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • USER_CONNECTED_TEMPLATE

        protected static final java.lang.String USER_CONNECTED_TEMPLATE
        See Also:
        Constant Field Values
      • USER_CONNECTED_WITH_TENANT_TEMPLATE

        protected static final java.lang.String USER_CONNECTED_WITH_TENANT_TEMPLATE
        See Also:
        Constant Field Values
      • USER_DISCONNECTED_TEMPLATE

        protected static final java.lang.String USER_DISCONNECTED_TEMPLATE
        See Also:
        Constant Field Values
      • USER_DISCONNECTED_WITH_TENANT_TEMPLATE

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

        protected final org.slf4j.Logger logger
      • restTemplate

        protected final org.springframework.web.client.RestTemplate restTemplate
      • userStatusBaseUrl

        protected final java.lang.String userStatusBaseUrl
    • Constructor Detail

      • RemoteUserSessionService

        public RemoteUserSessionService​(org.springframework.web.client.RestTemplate restTemplate,
                                        java.lang.String userStatusBaseUrl)
    • Method Detail

      • userConnected

        public void userConnected​(java.lang.String userId,
                                  java.lang.String tenantId,
                                  java.lang.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​(java.lang.String userId,
                                     java.lang.String tenantId,
                                     java.lang.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