Package graphql.util

Class 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 once
      static class  LockKit.ReentrantLock
      A class to run code inside a reentrant lock
    • Constructor Summary

      Constructors 
      Constructor Description
      LockKit()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LockKit

        public LockKit()