Class CachedSupplier<T>

  • All Implemented Interfaces:
    Supplier<T>

    public class CachedSupplier<T>
    extends Object
    implements Supplier<T>
    Supplier that caches the value for a given duration with ability to invalidate on demand. Is thread safe.
    Author:
    freva
    • Constructor Detail

    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Supplier<T>
      • invalidate

        public void invalidate()