All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.cache.runtime.caffeine.CaffeineCacheInfo Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
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