类 LazyCacheLoader<E>

  • 所有已实现的接口:
    Supplier<E>, CacheLoader<E>
    直接已知子类:
    TimeBasedCacheLoader

    public class LazyCacheLoader<E>
    extends Object
    implements CacheLoader<E>
    支持懒加载的缓存数据加载器,一般情况下,数据只会加载一次
    从以下版本开始:
    2.0
    作者:
    Ready
    • 字段详细资料

      • uninitialized

        public static final Object uninitialized
      • value

        protected transient volatile Object value
    • 构造器详细资料

      • LazyCacheLoader

        public LazyCacheLoader​(Supplier<E> loader)
      • LazyCacheLoader

        public LazyCacheLoader​(boolean initialize,
                               Supplier<E> loader)