Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.storemate.store;
 
 import java.util.List;

Extension of the core StorableStore API, which adds methods useful for Admin tools, interfaces.
 
public abstract class AdminStorableStore extends StorableStore
{
    
Method for finding approximate number of currently in-flight (being processed) database write operations.
    public abstract int getInFlightWritesCount();

    
Method that can be used to scan over the whole store, counting number of soft-deleted entries.

Parameters:
maxRuntimeMsecs Maximum time to run before failing
Throws:
StoreException For failures of the backend store
java.lang.IllegalStateException If maximum runtime is exceeded, will throw an exception
    public abstract long getTombstoneCount(long maxRuntimeMsecs)
        throws IllegalStateExceptionStoreException;

    
Method that can be used to access first maxCount entries (in key order) from the store

Parameters:
maxCount Maximum number of entries to include.
includeDeleted Whether to include soft-deleted entries or not
    public abstract List<StorabledumpEntries(int maxCountboolean includeDeleted)
        throws StoreException;

    
Method that can be used to access first maxCount entries (in 'last-modified' order, from oldest to newest) from the store

Parameters:
maxCount Maximum number of entries to include.
fromTime Oldest timestamp to include (inclusive); since timestamps are positive, use 0l for "all"
includeDeleted Whether to include soft-deleted entries or not
    public abstract List<StorabledumpOldestEntries(int maxCountlong fromTime,
            boolean includeDeleted)
        throws StoreException;
    public abstract int removeTombstones(int maxToRemove)
        throws IOExceptionStoreException;
    public abstract int removeEntries(final int maxToRemove)
        throws IOExceptionStoreException;
New to GrepCode? Check out our FAQ X