|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrockit.memleak.value.KnownResult<V>
V
- public class KnownResult<V>
Constructor Summary | |
---|---|
KnownResult(V result)
|
Method Summary | |
---|---|
V |
get()
The actual result. |
long |
getChangeTime()
Get the time stamp of when this result last changed state. |
boolean |
isDone()
Returns true if this task completed. |
boolean |
isDone(java.lang.Object notificationToken)
Checks if the result is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnownResult(V result)
result
- Method Detail |
---|
public long getChangeTime()
IResult
IResult.isDone()
is false, returns the time when the request
was sent. If IResult.isDone()
is true, returns the time when the
response was received.
getChangeTime
in interface IResult<V>
public boolean isDone()
IResult
isDone
in interface IResult<V>
public boolean isDone(java.lang.Object notificationToken)
IResult
notificationToken
is added to the token set that will be
given to notification listeners once the result is available. And false
is returned.
isDone
in interface IResult<V>
public V get()
IResult
get
in interface IResult<V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |