程序包 org.dromara.dynamictp.common.queue
package org.dromara.dynamictp.common.queue
-
类类说明
Runtime.freeMemory()technology is used to calculate the memory limit by using the percentage of the current maximum available memory.Can completely solve the OOM problem caused byLinkedBlockingQueue.A clone of LinkedBlockingQueue with the addition of aVariableLinkedBlockingQueue.setCapacity(int)method, allowing us to change the capacity of the queue while it is in use.