Class Blocking.BlockingSupplier<T>

  • All Implemented Interfaces:
    java.util.function.Supplier<T>
    Enclosing class:
    Blocking

    static class Blocking.BlockingSupplier<T>
    extends java.lang.Object
    implements java.util.function.Supplier<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Object NULL  
      (package private) T result  
      (package private) java.util.function.Supplier<? extends T> supplier  
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockingSupplier​(java.util.function.Supplier<? extends T> supplier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      • Methods inherited from class java.lang.Object

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

      • NULL

        private static final java.lang.Object NULL
      • result

        volatile T result
      • supplier

        final java.util.function.Supplier<? extends T> supplier
    • Constructor Detail

      • BlockingSupplier

        BlockingSupplier​(java.util.function.Supplier<? extends T> supplier)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface java.util.function.Supplier<T>