Package co.paralleluniverse.strands
Class SettableFuture<V>
- java.lang.Object
-
- co.paralleluniverse.strands.AbstractFuture<V>
-
- co.paralleluniverse.strands.SettableFuture<V>
-
- All Implemented Interfaces:
java.util.concurrent.Future<V>
public class SettableFuture<V> extends AbstractFuture<V>
-
-
Constructor Summary
Constructors Constructor Description SettableFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
set(V value)
boolean
setException(java.lang.Throwable exception)
-
Methods inherited from class co.paralleluniverse.strands.AbstractFuture
cancel, get, get, interruptTask, isCancelled, isDone
-
-
-
-
Method Detail
-
set
public boolean set(V value)
- Overrides:
set
in classAbstractFuture<V>
-
setException
public boolean setException(java.lang.Throwable exception)
- Overrides:
setException
in classAbstractFuture<V>
-
-