|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILoadable
An object that can be loaded. What 'loading' means may be implementation dependent, but usually it will mean 'loaded into memory'.
Method Summary | |
---|---|
boolean |
isLoaded()
Returns whether this object is loaded or not. |
void |
load()
Starts a simple, non-blocking load. |
void |
load(boolean block)
Initiates the loading process. |
Method Detail |
---|
void load()
void load(boolean block) throws java.lang.InterruptedException
block
is false
), or return
only when the loading process is complete. If the object is already
loaded, the method returns immediately and has no effect. If the object
is in the process of loading, and the method is called in blocking mode,
the method blocks until loading is complete, even if that call of the
method did not initiate the loading process. Some implementors of this
interface may not support the immediate-return functionality.
block
- if true
, the method returns only when the loading
process is complete; if false
, the method returns
immediately.
java.lang.InterruptedException
- if the method is blocking, and is interrupted while waiting
for loading to completeboolean isLoaded()
true
only if the loading process has completed and the
object is actually loaded; if the object is still in the process of
loading, or failed to load, the method should return false
.
true
if the method has completed loading;
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |