Uses of Interface
org.miaixz.bus.core.Loader
Packages that use Loader
Package
Description
发布订阅模式封装,发布/订阅是一种消息范式 消息的发送者(EventPublisher)将事件或消息(Event)广播出去,订阅者(Subscriber)接收到消息后处理。
加载器的抽象接口和实现,包括懒加载的实现等
-
Uses of Loader in org.miaixz.bus.core.lang.event
Constructors in org.miaixz.bus.core.lang.event with parameters of type LoaderModifierConstructorDescriptionSimpleEventPublisher(List<Subscriber> subscribers, Loader<ExecutorService> executorServiceLoader) 构造 -
Uses of Loader in org.miaixz.bus.core.lang.loader
Classes in org.miaixz.bus.core.lang.loader that implement LoaderModifier and TypeClassDescriptionclassAtomicLoader<T>原子引用加载器 使用AtomicReference实懒加载,过程如下class函数式懒加载加载器 传入用于生成对象的函数,在对象需要使用时调用生成对象,然后抛弃此生成对象的函数。classLazyLoader<T>懒加载加载器 在load方法被调用前,对象未被加载,直到被调用后才开始加载 此加载器常用于对象比较庞大而不一定被使用的情况,用于减少启动时资源占用问题 此加载器使用双重检查(Double-Check)方式检查对象是否被加载,避免多线程下重复加载或加载丢失问题