Class DefaultModificationCountProvider

java.lang.Object
com.pervasive.datarush.tokens.DefaultModificationCountProvider
All Implemented Interfaces:
ModificationCountProvider

public class DefaultModificationCountProvider extends Object implements ModificationCountProvider
Provides a change number sequence which is manually managed. The creator is responsible for advancing the sequence.
  • Constructor Details

    • DefaultModificationCountProvider

      public DefaultModificationCountProvider()
      Creates a new change number sequence.
  • Method Details

    • getModificationCount

      public long getModificationCount()
      Description copied from interface: ModificationCountProvider
      Gets the current change number. This value is monotonically increasing; a change in value indicates a change to the data structure associated with the provider.
      Specified by:
      getModificationCount in interface ModificationCountProvider
      Returns:
      the current sequence number
    • increment

      public void increment()
      Increment the current change number. Subsequent calls to getModificationCount() will see the new counter value.