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

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

Introduction

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

The text is from its open source code.

Subclass

com.google.common.util.concurrent.ListenableFutureTask has subclasses.
Click this link to see all its subclasses.

Method

voidaddListener(Runnable listener, Executor exec)
ListenableFutureTaskcreate(Callable callable)
Creates a ListenableFutureTask that will upon running, execute the given Callable .
ListenableFutureTaskcreate(Runnable runnable, @Nullable V result)
Creates a ListenableFutureTask that will upon running, execute the given Runnable , and arrange that get will return the given result on successful completion.
Vget()
Waits if necessary for the computation to complete, and then retrieves its result.