Module datarush.library
Package com.pervasive.datarush.tokens
Class DefaultModificationCountProvider
java.lang.Object
com.pervasive.datarush.tokens.DefaultModificationCountProvider
- All Implemented Interfaces:
ModificationCountProvider
Provides a change number sequence which is
manually managed. The creator is responsible
for advancing the sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the current change number.voidIncrement the current change number.
-
Constructor Details
-
DefaultModificationCountProvider
public DefaultModificationCountProvider()Creates a new change number sequence.
-
-
Method Details
-
getModificationCount
public long getModificationCount()Description copied from interface:ModificationCountProviderGets 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:
getModificationCountin interfaceModificationCountProvider- Returns:
- the current sequence number
-
increment
public void increment()Increment the current change number. Subsequent calls togetModificationCount()will see the new counter value.
-