Package graphql.util
Class LockKit.ReentrantLock
java.lang.Object
graphql.util.LockKit.ReentrantLock
- Enclosing class:
LockKit
A class to run code inside a reentrant lock
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReentrantLock
public ReentrantLock()
-
-
Method Details
-
lock
public void lock()Sometimes you need to directly lock things like for checked exceptionsIt's on you to unlock it!
-
unlock
public void unlock() -
runLocked
-
callLocked
-