Class HotRodAsyncStrongCounter

java.lang.Object
org.infinispan.hotrod.HotRodAsyncStrongCounter
All Implemented Interfaces:
org.infinispan.api.async.AsyncStrongCounter

public class HotRodAsyncStrongCounter extends Object implements org.infinispan.api.async.AsyncStrongCounter
Since:
14.0
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface org.infinispan.api.async.AsyncStrongCounter
    • configuration

      public CompletionStage<org.infinispan.api.configuration.CounterConfiguration> configuration()
      Specified by:
      configuration in interface org.infinispan.api.async.AsyncStrongCounter
    • container

      public HotRodAsyncContainer container()
      Specified by:
      container in interface org.infinispan.api.async.AsyncStrongCounter
    • value

      public CompletionStage<Long> value()
      Specified by:
      value in interface org.infinispan.api.async.AsyncStrongCounter
    • addAndGet

      public CompletionStage<Long> addAndGet(long delta)
      Specified by:
      addAndGet in interface org.infinispan.api.async.AsyncStrongCounter
    • reset

      public CompletionStage<Void> reset()
      Specified by:
      reset in interface org.infinispan.api.async.AsyncStrongCounter
    • listen

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

      public CompletionStage<Long> compareAndSwap(long expect, long update)
      Specified by:
      compareAndSwap in interface org.infinispan.api.async.AsyncStrongCounter
    • getAndSet

      public CompletionStage<Long> getAndSet(long value)
      Specified by:
      getAndSet in interface org.infinispan.api.async.AsyncStrongCounter