Java com.google.common.util.concurrent ListenableFuture fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.util.concurrent ListenableFuture fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.util.concurrent ListenableFuture.

The text is from its open source code.

Implementation

com.google.common.util.concurrent.ListenableFuture has the following implementations.
Click this link to see all its implementation.

Constructor

Method

voidaddListener(Runnable listener, Executor executor)
Registers a listener to be Executor#execute(Runnable) run on the given executor.
booleancancel(boolean mayInterruptIfRunning)
Attempts to cancel execution of this task.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
Vget()
Waits if necessary for the computation to complete, and then retrieves its result.
Vget(long timeout, TimeUnit unit)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
booleanisCancelled()
Returns true if this task was cancelled before it completed normally.
booleanisDone()
Returns true if this task completed.