Module datarush.library
Package com.pervasive.datarush.tokens
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 SummaryConstructors Constructor Description DefaultModificationCountProvider()Creates a new change number sequence.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetModificationCount()Gets the current change number.voidincrement()Increment the current change number.
 
- 
- 
- 
Method Detail- 
getModificationCountpublic 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 interface- ModificationCountProvider
- Returns:
- the current sequence number
 
 - 
incrementpublic void increment() Increment the current change number. Subsequent calls togetModificationCount()will see the new counter value.
 
- 
 
-