java.lang.Object
java.util.concurrent.locks.ReentrantLock
org.autogui.base.mapping.GuiPreferences.PreferencesLock
- All Implemented Interfaces:
Serializable
,AutoCloseable
,Lock
- Enclosing class:
GuiPreferences
the entire lock object for the preferences
try (var lock = prefs.lock()) { ... //editing }
- Since:
- 1.6
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.locks.ReentrantLock
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
-
Constructor Details
-
PreferencesLock
public PreferencesLock()
-
-
Method Details
-
open
-
use
public void use()empty operation for suppressing warnings of no resource usage -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-