类 ConcurrentArrayPool.Builder<T>

java.lang.Object
cn.wjybxx.base.pool.ConcurrentArrayPool.Builder<T>
封闭类:
ConcurrentArrayPool<T>

public static class ConcurrentArrayPool.Builder<T> extends Object
  • 方法详细资料

    • build

      public ConcurrentArrayPool<T> build()
    • addBucket

      public ConcurrentArrayPool.Builder<T> addBucket(int arrayCapacity, int cacheCount)
      参数:
      arrayCapacity - bucket中的数组大小
      cacheCount - bucket缓存的数组个数
      返回:
      this
    • getArrayType

      public Class<T> getArrayType()
    • getDefCapacity

      public int getDefCapacity()
      默认分配的数组空间大小
    • setDefCapacity

      public ConcurrentArrayPool.Builder<T> setDefCapacity(int defCapacity)
    • getMaxCapacity

      public int getMaxCapacity()
      可缓存的数组的最大空间 -- 超过大小的数组销毁
    • setMaxCapacity

      public ConcurrentArrayPool.Builder<T> setMaxCapacity(int maxCapacity)
    • isClear

      public boolean isClear()
      数组在归还时是否清理数组内容
    • setClear

      public ConcurrentArrayPool.Builder<T> setClear(boolean clear)
    • getFirstBucketLength

      public int getFirstBucketLength()
      每个bucket存储多少个数组
    • setFirstBucketLength

      public ConcurrentArrayPool.Builder<T> setFirstBucketLength(int firstBucketLength)
    • getArrayGrowFactor

      public double getArrayGrowFactor()
      数组成长系数
    • setArrayGrowFactor

      public ConcurrentArrayPool.Builder<T> setArrayGrowFactor(double arrayGrowFactor)
    • getBucketGrowFactor

      public double getBucketGrowFactor()
      桶大小成长系数
    • setBucketGrowFactor

      public ConcurrentArrayPool.Builder<T> setBucketGrowFactor(double bucketGrowFactor)
    • getLookAhead

      public int getLookAhead()
    • setLookAhead

      public ConcurrentArrayPool.Builder<T> setLookAhead(int lookAhead)
    • getBucketInfo

      public List<ArrayBucketConfig> getBucketInfo()