docs: public SegmentsAndMetadata pushAllAndClear(long pushAndClearTimeoutMs)
        throws InterruptedException, ExecutionException, TimeoutException
    {
      final Collection<String> sequences;
      synchronized (segments) {
        sequences = ImmutableList.copyOf(segments.keySet());
      }
  
      return pushAndClear(sequences, pushAndClearTimeoutMs);
    }