Interface UserSessionService

All Known Implementing Classes:
NoOpUserSessionService, RemoteUserSessionService

public interface UserSessionService
Interface that handles the user real time connect and disconnect events.
Author:
Filip Hrisafov
  • Method Summary

    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
  • Method Details

    • userConnected

      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
      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

      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
      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