|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kth.dks.util.Future
org.kth.dks.util.ReusableFuture
public class ReusableFuture
Implements a Future that is reset after it returns an object with get()
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2004
Company: KTH-IMIT/SICS
| Constructor Summary | |
|---|---|
ReusableFuture()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get()
Same functionality as Future.get() but in addition resets its flags such that it can be reused as if it was a new Future |
java.lang.Object |
get(long timeout)
Same functionality as Future.get() but in addition resets its flags such that it can be reused as if it was a new Future |
| Methods inherited from class org.kth.dks.util.Future |
|---|
cancel, cancel, isCancelled, isDone, store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReusableFuture()
| Method Detail |
|---|
public java.lang.Object get()
throws java.lang.InterruptedException,
CancellationException,
java.lang.Exception
get in class Futurejava.lang.InterruptedException
CancellationException
java.lang.ExceptionFuture
public java.lang.Object get(long timeout)
throws TimeoutException,
java.lang.InterruptedException,
CancellationException
get in class Futuretimeout - long
TimeoutException
java.lang.InterruptedException
CancellationExceptionFuture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||