Class WeakCounterKey

  • All Implemented Interfaces:
    CounterKey

    @ProtoTypeId(127)
    public class WeakCounterKey
    extends Object
    implements CounterKey
    The key to store in the Cache used by WeakCounter.

    The weak consistent counters splits the counter's value in multiple keys. This class contains the index.

    Since:
    9.0
    Author:
    Pedro Ruivo
    • Method Detail

      • getCounterName

        @ProtoField(1)
        public org.infinispan.util.ByteString getCounterName()
        Specified by:
        getCounterName in interface CounterKey
        Returns:
        The counter name.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object