Inserts the specified element into this queue, waiting if necessary
for space to become available.
@param e the element to add
@throws InterruptedException if interrupted while waiting
@throws ClassCastException if the class of the specified element
prevents it from being added to this queue
@throws NullPointerException if the specified element is null
@throws IllegalArgumentException if some property of the specified
element prevents it from being added to this queue
Inserts the specified element into this queue, waiting if necessary for space to become available.
@param e the element to add @throws InterruptedException if interrupted while waiting @throws ClassCastException if the class of the specified element prevents it from being added to this queue @throws NullPointerException if the specified element is null @throws IllegalArgumentException if some property of the specified element prevents it from being added to this queue