Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.storemate.store.impl;
 
Helper class used for estimating number of tombstones in the store.
    private final TimeMaster timeMaster;
    private final long failAtTime;
    
    public int total = 0;
    public int tombstones = 0;
    public TombstoneCounter(TimeMaster timeMasterlong failAtTime) {
        this. = timeMaster;
        this. = failAtTime;
    }
    
    @Override public IterationAction verifyKey(StorableKey key) {
        if ((++ & 0x7F) == 0) {
            if (.currentTimeMillis() >= ) {
                return .;
            }
        }
        return .;
    }
    @Override
    public IterationAction processEntry(Storable entry) {
        if (entry.isDeleted()) {
            ++;
        }
        return .;
    }
    
New to GrepCode? Check out our FAQ X