Package graphql.util
Class LockKit
- java.lang.Object
-
- graphql.util.LockKit
-
public class LockKit extends java.lang.Object
This 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 class
LockKit.ComputedOnce
Will allow for lazy computation of some values just oncestatic class
LockKit.ReentrantLock
A class to run code inside a reentrant lock
-
Constructor Summary
Constructors Constructor Description LockKit()
-