
net.anthavio.cache.LoadingSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hatatitla Show documentation
Show all versions of hatatitla Show documentation
Compact but tweakable REST client library you have been dreaming of
The newest version!
package net.anthavio.cache;
import java.io.Serializable;
/**
* TODO shorter name
*
* @author martin.vanek
*
* @param
*/
public class LoadingSettings implements Serializable {
private static final long serialVersionUID = 1L;
private CacheEntryLoader loader;
private boolean missingLoadAsync = false;
private boolean expiredLoadAsync = false;
public LoadingSettings(CacheEntryLoader loader, boolean missingAsyncLoad, boolean expiredAsyncLoad) {
if (loader == null) {
throw new IllegalArgumentException("Null loader");
}
this.loader = loader;
this.missingLoadAsync = missingAsyncLoad;
this.expiredLoadAsync = expiredAsyncLoad;
}
public CacheEntryLoader getLoader() {
return loader;
}
public boolean isMissingLoadAsync() {
return missingLoadAsync;
}
public boolean isExpiredLoadAsync() {
return expiredLoadAsync;
}
@Override
public String toString() {
return "LoadingSettings [loader=" + loader + ", missingLoadAsync=" + missingLoadAsync + ", expiredLoadAsync="
+ expiredLoadAsync + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy