- All Known Implementing Classes:
SafeLockImpl
@Ser
public interface ISafeLock
Lock creator interface for auto-closable read-only and read-write locks.
-
Method Summary
Create an auto-closable read-only lock.
Create an auto-closable read-write lock.
-
Method Details
-
ro
Create an auto-closable read-only lock.
- Returns:
- an acquired lock that releases its read lock when closed
-
rw
Create an auto-closable read-write lock.
- Returns:
- an acquired lock that releases its write lock when closed