Package org.aoju.bus.core.io
Class LifeCycle
java.lang.Object
org.aoju.bus.core.io.LifeCycle
这是避免GC搅动和零填充所必需的 这个池是一个线程安全的静态单例
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_SIZE
public static final long MAX_SIZEThe maximum number of bytes to pool 64 KiB- See Also:
-
next
Singly-linked list of segments -
byteCount
public static long byteCountTotal bytes in this pool
-
-
Constructor Details
-
LifeCycle
public LifeCycle()
-
-
Method Details
-
take
-
recycle
-