Class WeakCounterKey

java.lang.Object
org.infinispan.counter.impl.weak.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 Details

    • getCounterName

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object