public
abstract
class
AbstractApiFuture<V>
implements
ApiFuture<V>
Abstract implementation of ApiFuture that mirrors AbstractFuture
in Guava.
Implements
com.google.api.core.ApiFuture<V>Type Parameter
Name
Description
V
Constructors
AbstractApiFuture()
public
AbstractApiFuture
()
Methods
addListener(Runnable listener, Executor executor)
public
void
addListener
(
Runnable
listener
,
Executor
executor
)
cancel(boolean mayInterruptIfRunning)
public
boolean
cancel
(
boolean
mayInterruptIfRunning
)
get()
public
V
get
()
Returns
Type
Description
V
get(long timeout, TimeUnit unit)
public
V
get
(
long
timeout
,
TimeUnit
unit
)
Returns
Type
Description
V
interruptTask()
protected
void
interruptTask
()
isCancelled()
public
boolean
isCancelled
()
isDone()
public
boolean
isDone
()
set(V value)
protected
boolean
set
(
V
value
)
Parameter
Name
Description
value
V
setException(Throwable throwable)
protected
boolean
setException
(
Throwable
throwable
)

