Package graphql.util

Class LockKit.ComputedOnce

  • Enclosing class:
    LockKit

    public static class LockKit.ComputedOnce
    extends java.lang.Object
    Will allow for lazy computation of some values just once
    • Constructor Summary

      Constructors 
      Constructor Description
      ComputedOnce()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasBeenComputed()  
      void runOnce​(java.lang.Runnable codeToRunOnce)  
      • Methods inherited from class java.lang.Object

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

      • ComputedOnce

        public ComputedOnce()
    • Method Detail

      • hasBeenComputed

        public boolean hasBeenComputed()
      • runOnce

        public void runOnce​(java.lang.Runnable codeToRunOnce)