Class CommandListenerAbstract

    • Constructor Detail

      • CommandListenerAbstract

        public CommandListenerAbstract​(java.lang.String name,
                                       Priority priority)
    • Method Detail

      • getSyncInTraffic

        public static long getSyncInTraffic()
      • getSyncOutTraffic

        public static long getSyncOutTraffic()
      • equals

        public boolean equals​(java.lang.Object cl)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • incSyncInTraffic

        public void incSyncInTraffic()
      • incSyncOutTraffic

        public void incSyncOutTraffic()
      • getName

        public java.lang.String getName()
        Description copied from interface: CommandListener
        Method allows retrieval name of the particular command
        Specified by:
        getName in interface CommandListener
        Returns:
        a value of String name of the command
      • setName

        public final void setName​(java.lang.String name)
        Description copied from interface: CommandListener
        Method allows setting name of the command
        Specified by:
        setName in interface CommandListener
        Parameters:
        name - to be used
      • getPriority

        public Priority getPriority()
        Description copied from interface: CommandListener
        Method returns priority of particular command which should be used to assign proper priority for processing of this command
        Specified by:
        getPriority in interface CommandListener
      • setPriority

        public void setPriority​(Priority priority)
      • getStatistics

        public void getStatistics​(StatisticsList list)
        Description copied from interface: CommandListener
        Method allows retrieval possible statistics for particular command
        Specified by:
        getStatistics in interface CommandListener
        Parameters:
        list - collection to which statistics should be appended