Class MemorySailStore.SnapshotMonitor

  • Enclosing class:
    MemorySailStore

    static class MemorySailStore.SnapshotMonitor
    extends java.lang.Object
    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.
    • Field Detail

      • activeSnapshots

        private final java.util.concurrent.ConcurrentHashMap<java.lang.Integer,​java.util.concurrent.atomic.LongAdder> activeSnapshots
      • debug

        private final boolean debug
      • highestEverReservedSnapshot

        private final java.util.concurrent.atomic.AtomicInteger highestEverReservedSnapshot
    • Constructor Detail

      • SnapshotMonitor

        public SnapshotMonitor​(boolean debug)