Class LifeCycle

java.lang.Object
org.aoju.bus.core.io.LifeCycle

public final class LifeCycle extends Object
这是避免GC搅动和零填充所必需的 这个池是一个线程安全的静态单例
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • MAX_SIZE

      public static final long MAX_SIZE
      The maximum number of bytes to pool 64 KiB
      See Also:
    • next

      public static Segment next
      Singly-linked list of segments
    • byteCount

      public static long byteCount
      Total bytes in this pool
  • Constructor Details

    • LifeCycle

      public LifeCycle()
  • Method Details

    • take

      public static Segment take()
    • recycle

      public static void recycle(Segment segment)