Returns the number of additional elements that this queue can ideally (in the absence of memory or resource constraints) accept without blocking, or {@code Integer.MAX_VALUE} if there is no intrinsiclimit.
Note that you cannot always tell if an attempt to insert an element will succeed by inspecting {@code remainingCapacity}because it may be the case that another thread is about to insert or remove an element.
@return the remaining capacity
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.