跳过导航链接

程序包 org.dromara.hutool.core.lang.ref

引用工具封装,主要针对Reference 工具化封装
主要封装包括: 1.

请参阅: 说明

程序包org.dromara.hutool.core.lang.ref的说明

引用工具封装,主要针对Reference 工具化封装
主要封装包括:
 1. SoftReference 软引用,在GC报告内存不足时会被GC回收
 2. WeakReference 弱引用,在GC时发现弱引用会回收其对象
 3. PhantomReference 虚引用,在GC时发现虚引用对象,会将PhantomReference插入ReferenceQueue。 此时对象未被真正回收,要等到ReferenceQueue被真正处理后才会被回收。
 
跳过导航链接

Copyright © 2024. All rights reserved.