Package graphql.util
Class LockKit
- java.lang.Object
-
- graphql.util.LockKit
-
public class LockKit extends java.lang.ObjectThis provides reentrant locking support for our code base. Future worlds like Loom virtual threads don't like synchronised calls since they pin the VT to the carrier thread. Word on the street is that locks are preferred to synchronised.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLockKit.ComputedOnceWill allow for lazy computation of some values just oncestatic classLockKit.ReentrantLockA class to run code inside a reentrant lock
-
Constructor Summary
Constructors Constructor Description LockKit()
-