T
- The type of the result of the request.U
- The type of the object on which the request is being made.public interface IRequest<T extends IRequestResult,U>
ICompilationUnit
Modifier and Type | Method and Description |
---|---|
T |
get()
Blocks until requested operation is complete.
|
U |
getRequestee()
Get the object on which this request is being made.
|
long |
getTimeStamp()
Returns the time at which the request was first created.
|
boolean |
isDone()
Returns true if the requested operation is complete.
|
T get() throws InterruptedException
InterruptedException
boolean isDone()
long getTimeStamp()
If the result of the request has been cached to disk, then the time returned from this method should be the time the request whose data was cached to disk was created. In other words, data cached to disk should contain the time stamp.
This method should return before the results of the request are available.
This method is used to propagate invalidations when using on disk caches containing request results from a previously run java process.
U getRequestee()
Copyright © 2016 The Apache Software Foundation. All rights reserved.