Class DefaultLazyLoader<S,D> 
java.lang.Object
org.keycloak.models.cache.infinispan.DefaultLazyLoader<S,D> 
- All Implemented Interfaces:
 LazyLoader<S,D> 
Default implementation of 
DefaultLazyLoader that 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.- Author:
 - Pedro Igor
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionget(KeycloakSession session, Supplier<S> sourceSupplier) Returns data from the givensource. 
- 
Constructor Details
- 
DefaultLazyLoader
 
 - 
 - 
Method Details
- 
get
Description copied from interface:LazyLoaderReturns data from the givensource. Data is only fetched fromsourceonce and only if necessary, it is up to implementations to decide the momentum to actually fetch data from source.- Specified by:
 getin interfaceLazyLoader<S,D> - Parameters:
 session- the sessionsourceSupplier- the source from where data will be fetched.- Returns:
 - the data from source
 
 
 -