Package java.util.concurrent
package java.util.concurrent
-
ClassDescriptionThrown by
Future.get()when the work was cancelled before it ran.Thrown byFuture.get()when the work failed; the cause is what it threw.Future<V>The result of work that finishes later -- on the backend, what an@Asyncmethod returns, completed when its body has run on its executor.Thrown byFuture.get(long, TimeUnit)when the work has not finished in time.A unit of time, for timeouts such asFuture.get(long, TimeUnit).