public int streamCount() { return refCountByStreamIdMap.size() + refCountByStreamIdAndSessionIdMap.size(); }
public int streamCount() { return refCountByStreamIdMap.size() + refCountByStreamIdAndSessionIdMap.size(); }
public int streamCount() { return refCountByStreamIdMap.size() + refCountByStreamIdAndSessionIdMap.size(); }
/** * Compact the backing arrays by rehashing with a capacity just larger than current size * and giving consideration to the load factor. */ public void compact() { @DoNotSub final int idealCapacity = (int)Math.round(size() * (1.0d / loadFactor)); rehash(findNextPositivePowerOfTwo(Math.max(MIN_CAPACITY, idealCapacity))); }