# | Line 173 | Line 173 | public interface BlockingQueue<E> extend | |
---|---|---|
173 | * <p>Note that you <em>cannot</em> always tell if | |
174 | * an attempt to <tt>add</tt> an element will succeed by | |
175 | * inspecting <tt>remainingCapacity</tt> because it may be the | |
176 | < | * case that a waiting consumer is ready to <tt>take</tt> an |
177 | < | * element out of an otherwise full queue. |
176 | > | * case that another thread is about to <tt>put</tt> or <tt>take</tt> an |
177 | > | * element. |
178 | * @return the remaining capacity | |
179 | */ | |
180 | int remainingCapacity(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |