Interface RaftCounter

All Superinterfaces:
org.jgroups.blocks.atomic.BaseCounter
All Known Subinterfaces:
RaftAsyncCounter, RaftSyncCounter
All Known Implementing Classes:
AsyncCounterImpl

public interface RaftCounter extends org.jgroups.blocks.atomic.BaseCounter
TODO! document this
  • Method Summary

    Modifier and Type
    Method
    Description
     
    long
    Gets the current local value of the counter; this is purely local and the value may be stale
     
    Returns an instance of a counter with the given options

    Methods inherited from interface org.jgroups.blocks.atomic.BaseCounter

    getName
  • Method Details

    • getLocal

      long getLocal()
      Gets the current local value of the counter; this is purely local and the value may be stale
      Returns:
      The current local value of the counter
    • withOptions

      RaftCounter withOptions(Options opts)
      Returns an instance of a counter with the given options
      Parameters:
      opts - The options
      Returns:
      The counter of the given type
    • sync

      Specified by:
      sync in interface org.jgroups.blocks.atomic.BaseCounter
    • async

      Specified by:
      async in interface org.jgroups.blocks.atomic.BaseCounter