Package org.eclipse.rdf4j.sail.memory
Class MemorySailStore.SnapshotMonitor
java.lang.Object
org.eclipse.rdf4j.sail.memory.MemorySailStore.SnapshotMonitor
- Enclosing class:
MemorySailStore
SnapshotMonitor is used to keep track of which snapshot version are no longer is use (read or write) so that we
can safely clean that snapshot version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentHashMap
<Integer, LongAdder> private static final ConcurrentCleaner
private final boolean
private final AtomicInteger
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cleaner
-
activeSnapshots
-
debug
private final boolean debug -
highestEverReservedSnapshot
-
-
Constructor Details
-
SnapshotMonitor
public SnapshotMonitor(boolean debug)
-
-
Method Details
-
getFirstUnusedOrElse
public int getFirstUnusedOrElse(int currentSnapshot) -
reserve
-