Class Stats

  • All Implemented Interfaces:
    Serializable

    public final class Stats
    extends Object
    implements Serializable
    Basic POJO to track ability and reply hits. The current implementation is NOT thread safe.
    Author:
    Abbas Abou Daya
    See Also:
    Serialized Form
    • Method Detail

      • createStats

        public static Stats createStats​(String name,
                                        long hits)
      • hits

        public long hits()
      • hit

        public void hit()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object