Class HotRodSyncStrongCounter

java.lang.Object
org.infinispan.hotrod.HotRodSyncStrongCounter
All Implemented Interfaces:
org.infinispan.api.sync.SyncStrongCounter

public class HotRodSyncStrongCounter extends Object implements org.infinispan.api.sync.SyncStrongCounter
Since:
14.0
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface org.infinispan.api.sync.SyncStrongCounter
    • container

      public HotRodSyncContainer container()
      Specified by:
      container in interface org.infinispan.api.sync.SyncStrongCounter
    • value

      public long value()
      Specified by:
      value in interface org.infinispan.api.sync.SyncStrongCounter
    • addAndGet

      public long addAndGet(long delta)
      Specified by:
      addAndGet in interface org.infinispan.api.sync.SyncStrongCounter
    • reset

      public CompletableFuture<Void> reset()
      Specified by:
      reset in interface org.infinispan.api.sync.SyncStrongCounter
    • listen

      public AutoCloseable listen(Consumer<org.infinispan.api.common.events.counter.CounterEvent> listener)
      Specified by:
      listen in interface org.infinispan.api.sync.SyncStrongCounter
    • compareAndSwap

      public long compareAndSwap(long expect, long update)
      Specified by:
      compareAndSwap in interface org.infinispan.api.sync.SyncStrongCounter
    • getAndSet

      public long getAndSet(long value)
      Specified by:
      getAndSet in interface org.infinispan.api.sync.SyncStrongCounter
    • configuration

      public org.infinispan.api.configuration.CounterConfiguration configuration()
      Specified by:
      configuration in interface org.infinispan.api.sync.SyncStrongCounter