Allocates a buffer from the pool.
@param notify object to be notified when a buffer is released into thepool.
@return a buffer from the pool or null if the pool is empty and notify isnot null.
@throws IOException the pool is empty and notify is null.
Adjusts the number of items actually allocated or freed from some system facility rather than just from a pool. The number of used items can never exceed the number allocated. The number of allocated items equals used plus the current size of the pool.
@param k positive if items are being allocated, negative if items arebeing released.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.