Class AbstractClientListener

    • Field Detail

      • localEngine

        protected net.timewalker.ffmq4.local.FFMQEngine localEngine
      • settings

        protected net.timewalker.ffmq4.utils.Settings settings
      • acceptedClients

        protected int acceptedClients
      • started

        protected boolean started
    • Constructor Detail

      • AbstractClientListener

        public AbstractClientListener​(net.timewalker.ffmq4.local.FFMQEngine localEngine,
                                      net.timewalker.ffmq4.utils.Settings settings,
                                      JMXAgent jmxAgent)
        Constructor
    • Method Detail

      • registerClient

        protected void registerClient​(ClientProcessor processor)
      • unregisterClient

        protected void unregisterClient​(ClientProcessor processor)
      • closeRemainingClients

        protected void closeRemainingClients()
      • getActiveClients

        public int getActiveClients()
        Description copied from interface: ClientListener
        Get the current number of active clients for this listener
        Specified by:
        getActiveClients in interface ClientListener
        Returns:
        the current number of active clients for this listener
      • getAcceptedTotal

        public int getAcceptedTotal()
        Description copied from interface: ClientListener
        Get the total number of clients accepted by this listener since startup or statistics reset
        Specified by:
        getAcceptedTotal in interface ClientListener
        Returns:
        the total number of clients accepted by this listener
      • getDroppedTotal

        public int getDroppedTotal()
        Description copied from interface: ClientListener
        Get the total number of clients dropped by this listener since startup or statistics reset
        Specified by:
        getDroppedTotal in interface ClientListener
        Returns:
        the total number of clients dropped by this listener
      • getMaxActiveClients

        public int getMaxActiveClients()
        Description copied from interface: ClientListener
        Get the peak number of active clients for this listener since startup or statistics reset
        Specified by:
        getMaxActiveClients in interface ClientListener
        Returns:
        the peak number of active clients for this listener