Interface SyncWeakCounter


public interface SyncWeakCounter
Since:
14.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(long delta)
    Adds the given value to the new value.
    Return the container of this cache
    default void
    Decrements the counter.
    default void
    Increments the counter.
    Returns the name of this counter
    long
     
  • Method Details

    • name

      String name()
      Returns the name of this counter
      Returns:
      the name of this counter
    • container

      SyncContainer container()
      Return the container of this cache
      Returns:
    • value

      long value()
    • increment

      default void increment()
      Increments the counter.
    • decrement

      default void decrement()
      Decrements the counter.
    • add

      void add(long delta)
      Adds the given value to the new value.
      Parameters:
      delta - the value to add.