|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrockit.memleak.mlp.AbstractMemLeak.VoidResult
protected class AbstractMemLeak.VoidResult
IResult implementation that always returns null. Used to wait for completion, catching errors, or by sub classing to perform something when the request is completed.
Constructor Summary | |
---|---|
AbstractMemLeak.VoidResult()
|
|
AbstractMemLeak.VoidResult(int numRequests)
|
Method Summary | |
---|---|
java.lang.Void |
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. |
protected void |
onCompletion()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMemLeak.VoidResult()
public AbstractMemLeak.VoidResult(int numRequests)
numRequests
- 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<java.lang.Void>
public boolean isDone()
IResult
isDone
in interface IResult<java.lang.Void>
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<java.lang.Void>
public java.lang.Void get() throws GarbageCollectedException, SpiException
IResult
get
in interface IResult<java.lang.Void>
GarbageCollectedException
SpiException
protected void onCompletion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |