|
@@ -20,6 +20,7 @@ package org.apache.hadoop.yarn.client.api;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.util.Collection;
|
|
|
+import java.util.function.Supplier;
|
|
|
import java.util.List;
|
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
@@ -45,7 +46,6 @@ import org.apache.hadoop.yarn.exceptions.YarnException;
|
|
|
import org.apache.hadoop.yarn.util.resource.Resources;
|
|
|
|
|
|
import com.google.common.base.Preconditions;
|
|
|
-import com.google.common.base.Supplier;
|
|
|
import com.google.common.collect.ImmutableList;
|
|
|
|
|
|
@InterfaceAudience.Public
|
|
@@ -702,8 +702,8 @@ public abstract class AMRMClient<T extends AMRMClient.ContainerRequest> extends
|
|
|
|
|
|
/**
|
|
|
* Wait for <code>check</code> to return true for each 1000 ms.
|
|
|
- * See also {@link #waitFor(com.google.common.base.Supplier, int)}
|
|
|
- * and {@link #waitFor(com.google.common.base.Supplier, int, int)}
|
|
|
+ * See also {@link #waitFor(java.util.function.Supplier, int)}
|
|
|
+ * and {@link #waitFor(java.util.function.Supplier, int, int)}
|
|
|
* @param check the condition for which it should wait
|
|
|
*/
|
|
|
public void waitFor(Supplier<Boolean> check) throws InterruptedException {
|
|
@@ -713,7 +713,7 @@ public abstract class AMRMClient<T extends AMRMClient.ContainerRequest> extends
|
|
|
/**
|
|
|
* Wait for <code>check</code> to return true for each
|
|
|
* <code>checkEveryMillis</code> ms.
|
|
|
- * See also {@link #waitFor(com.google.common.base.Supplier, int, int)}
|
|
|
+ * See also {@link #waitFor(java.util.function.Supplier, int, int)}
|
|
|
* @param check user defined checker
|
|
|
* @param checkEveryMillis interval to call <code>check</code>
|
|
|
*/
|