Class LiveCounterUpdate.Update

java.lang.Object
io.ably.lib.objects.type.counter.LiveCounterUpdate.Update
Enclosing class:
LiveCounterUpdate

public static class LiveCounterUpdate.Update extends Object
Contains the specific details of a counter update operation.
  • Constructor Details

    • Update

      public Update(@NotNull @NotNull Double amount)
      Creates an Update with the specified amount.
      Parameters:
      amount - the counter change amount (positive = increment, negative = decrement)
  • Method Details

    • getAmount

      @NotNull public @NotNull Double getAmount()
      Gets the amount by which the counter value was modified.
      Returns:
      the change amount (positive for increments, negative for decrements)