Class ObjectCache<T>

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

    public class ObjectCache<T>
    extends java.lang.Object
    implements java.util.function.Supplier<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectCache​(java.util.function.Supplier<T> supplier, long cacheDuration, java.util.concurrent.TimeUnit unit)  
    • 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
    • Constructor Detail

      • ObjectCache

        public ObjectCache​(java.util.function.Supplier<T> supplier,
                           long cacheDuration,
                           java.util.concurrent.TimeUnit unit)
    • Method Detail

      • get

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