class InternalResourceManager implements ResourceManager {

  public CompletableFuture<Void> allOfStartupTasks() {
    synchronized (startupTasks) {
      CompletableFuture[] completableFutures = startupTasks.toArray(new CompletableFuture[0]);
      startupTasks.clear();
      return CompletableFuture.allOf(completableFutures);
    }
  }

  private  InternalResourceManager(InternalCache cache);

}