public int drainTo(Collection<? super E> c)
    {
        if (!isBlockingQueue)
        {
            throw new UnsupportedOperationException("This operation is only supported on blocking queues.");
        }

        return ((java.util.concurrent.BlockingQueue<E>) queue).drainTo(c);
    }
public int drainTo(Collection<? super E> c)
    {
        if (!isBlockingQueue)
        {
            throw new UnsupportedOperationException("This operation is only supported on blocking queues.");
        }

        return ((java.util.concurrent.BlockingQueue<E>) queue).drainTo(c);
    }
public int drainTo ( Collection < ? super E > c ) { if ( ! isBlockingQueue ) { throw new UnsupportedOperationException ( "This operation is only supported on blocking queues." ) ; } return ( ( java . util . concurrent . BlockingQueue < E > ) queue ) . drainTo ( c ) ; }
{@inheritDoc}
{