Constructor and Description |
---|
LazyRef() |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
fetch() |
E |
get() |
Throwable |
getError()
Gets any error that occurred while fetching the lazy loaded value.
|
boolean |
isFetched()
Gets whether the lazy loaded reference has been loaded or not.
|
void |
requestLoad()
Requests an asynchronous load of the lazy reference.
|
void |
requestLoad(Action<Throwable> errorAction)
Requests an asynchronous load of the lazy reference.
|
public boolean isFetched()
public Throwable getError()
public void requestLoad(Action<Throwable> errorAction)
errorAction
- an optional error action to invoke if an exception is thrown
during loading of the reference.public void requestLoad()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.