Creates a {@code LinkedBlockingDeque} with the given (fixed) capacity
and fairness policy.
@param capacity the capacity of this deque
@param fairness true means threads waiting on the deque should be served
as if waiting in a FIFO request queue
@throws IllegalArgumentException if {@code capacity} is less than 1
Creates a {@code LinkedBlockingDeque} with the given (fixed) capacity and fairness policy.
@param capacity the capacity of this deque @param fairness true means threads waiting on the deque should be served as if waiting in a FIFO request queue @throws IllegalArgumentException if {@code capacity} is less than 1