io.quarkus.cache.runtime.caffeine.CaffeineCacheInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-cache Show documentation
Show all versions of quarkus-cache Show documentation
Enable application data caching in CDI beans
package io.quarkus.cache.runtime.caffeine;
import java.time.Duration;
import java.util.Objects;
public class CaffeineCacheInfo {
public String name;
public Integer initialCapacity;
public Long maximumSize;
public Duration expireAfterWrite;
public Duration expireAfterAccess;
public boolean metricsEnabled;
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof CaffeineCacheInfo) {
CaffeineCacheInfo other = (CaffeineCacheInfo) obj;
return Objects.equals(name, other.name);
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy