Class IoServiceListenerSupport

    • Constructor Detail

      • IoServiceListenerSupport

        public IoServiceListenerSupport​(IoService service)
        Creates a new instance of the listenerSupport.
        Parameters:
        service - The associated IoService
    • Method Detail

      • add

        public void add​(IoServiceListener listener)
        Adds a new listener.
        Parameters:
        listener - The added listener
      • remove

        public void remove​(IoServiceListener listener)
        Removes an existing listener.
        Parameters:
        listener - The listener to remove
      • getActivationTime

        public long getActivationTime()
        Returns:
        The time (in ms) this instance has been activated
      • getManagedSessionCount

        public int getManagedSessionCount()
        Returns:
        The number of managed IoSessions
      • getLargestManagedSessionCount

        public int getLargestManagedSessionCount()
        Returns:
        The largest number of managed session since the creation of this listenerSupport
      • getCumulativeManagedSessionCount

        public long getCumulativeManagedSessionCount()
        Returns:
        The total number of sessions managed since the initilization of this ListenerSupport
      • isActive

        public boolean isActive()
        Returns:
        true if the instance is active