Interface Lockable

    • Method Detail

      • lock

        boolean lock​(TimeSpan timeout)
        Acquire a Lock on a collection in cache.
        Parameters:
        timeout - The timeout after which Lock will be automatically released.
        Returns:
        True, if Lock was acquired successfully; otherwise false.
      • unlock

        void unlock()
        Unlock a locked collection.