public class DefaultLazyLoader<S,D> extends Object implements LazyLoader<S,D>
DefaultLazyLoaderthat only fetches data once. This implementation is not thread-safe and cached data is assumed to not be shared across different threads to sync state.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns data from the given
source. Data is only fetched from
sourceonce and only if necessary, it is up to implementations to decide the momentum to actually fetch data from source.
Copyright © 2021 JBoss by Red Hat. All rights reserved.