AsyncGet.Util (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.util.concurrent, interface: AsyncGet, class: Util

Package org.apache.hadoop.util.concurrent

# Class AsyncGet.Util

java.lang.Object
org.apache.hadoop.util.concurrent.AsyncGet.Util

Enclosing interface:
  AsyncGet<R,E extends Throwable>

public static class AsyncGet.Util extends Object
Utility

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Util()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `wait(Object obj, long timeout, TimeUnit unit)`
  Use `AsyncGet.get(long, TimeUnit)` timeout parameters to wait.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Util

    public Util()

- ## Method Details

  - ### wait

    public static void wait(Object obj, long timeout, TimeUnit unit) throws InterruptedException
    Use `AsyncGet.get(long, TimeUnit)` timeout parameters to wait.
    Parameters:
      `obj` - object.
      `timeout` - timeout.
      `unit` - unit.
    Throws:
      `InterruptedException` - if the thread is interrupted.