public Iterable<DesiredCapabilities> getDesiredCapabilities() {
    lock.readLock().lock();
    try {
      return newSessionRequests.stream()
          .map(req -> new DesiredCapabilities(req.getRequest().getDesiredCapabilities()))
          .collect(Collectors.toList());
    } finally {
      lock.readLock().unlock();
    }
  }
public Iterable < DesiredCapabilities > getDesiredCapabilities ( ) { lock . readLock ( ) . lock ( ) ; try { return newSessionRequests . stream ( ) . map ( req -> new DesiredCapabilities ( req . getRequest ( ) . getDesiredCapabilities ( ) ) ) . collect ( Collectors . toList ( ) ) ; } finally { lock . readLock ( ) . unlock ( ) ; } }
Provides the desired capabilities of all the items in this queue.

@return An Iterable of unmodifiable maps.