Class GridSnapshotLock<X>


  • public abstract class GridSnapshotLock<X>
    extends Object
    Synchronization primitive allowing concurrent updates and taking consistent snapshots.
    • Constructor Detail

      • GridSnapshotLock

        public GridSnapshotLock()
    • Method Detail

      • beginUpdate

        public void beginUpdate()
        Must be called before update begin.
      • tryBeginUpdate

        public boolean tryBeginUpdate()
        Returns:
        true If it is possible to proceed the update operation.
      • endUpdate

        public void endUpdate()
        Signal that update operation finished.
      • snapshot

        public X snapshot()
        Returns:
        Consistent snapshot of data.
      • doSnapshot

        protected abstract X doSnapshot()
        Returns:
        Snapshot.