Class AweConnectionTracker


  • public class AweConnectionTracker
    extends Object
    • Constructor Detail

      • AweConnectionTracker

        public AweConnectionTracker()
    • Method Detail

      • isUserConnected

        public boolean isUserConnected​(String user)
        Check if user is connected
        Parameters:
        user - User to check
        Returns:
        User is connected
      • isConnectionActive

        public boolean isConnectionActive​(String user,
                                          String connection)
        Check if connection is active
        Parameters:
        user - User to check
        Returns:
        User is connected
      • getUserConnections

        public Set<String> getUserConnections​(String user)
        Retrieve user connections
        Parameters:
        user - User
        Returns:
        Connection set
      • getScreenConnections

        public Set<String> getScreenConnections​(String screen)
        Retrieve connections which are in a concrete screen
        Parameters:
        screen - Screen
        Returns:
        Connection set
      • getUserConnectionsFromSession

        public Set<String> getUserConnectionsFromSession​(String user,
                                                         String session)
        Retrieve user connections
        Parameters:
        user - User
        Returns:
        Connection set
      • initializeUserConnections

        public void initializeUserConnections​(String user,
                                              String connection,
                                              String session)
        Initializes user connections
        Parameters:
        user - User
      • removeAllConnectionsFromUserSession

        public void removeAllConnectionsFromUserSession​(String user,
                                                        String session)
        Remove all connections from user session
        Parameters:
        user - User
      • onScreenChange

        @EventListener
        public void onScreenChange​(ScreenChangeEvent screenChangeEvent)
        On screen change event
        Parameters:
        screenChangeEvent -