Class COUNTER.CounterViewImpl

java.lang.Object
org.jgroups.protocols.COUNTER.CounterViewImpl
All Implemented Interfaces:
CounterView
Enclosing class:
COUNTER

private static class COUNTER.CounterViewImpl extends Object implements CounterView
  • Field Details

    • value

      private long value
  • Constructor Details

    • CounterViewImpl

      private CounterViewImpl(long value)
  • Method Details

    • get

      public long get()
      Specified by:
      get in interface CounterView
      Returns:
      The counter's value.
    • set

      public void set(long value)
      Description copied from interface: CounterView
      Sets the counter's value.
      Specified by:
      set in interface CounterView
      Parameters:
      value - The new value.