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

org.mockserver.cache.Entry Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.cache;

public class Entry {

    private final long ttlInMillis;
    private final T value;
    private long expiryInMillis;

    public Entry(long ttlInMillis, long expiryInMillis, T value) {
        this.ttlInMillis = ttlInMillis;
        this.expiryInMillis = expiryInMillis;
        this.value = value;
    }

    public long getTtlInMillis() {
        return ttlInMillis;
    }

    public long getExpiryInMillis() {
        return expiryInMillis;
    }

    public Entry updateExpiryInMillis(long expiryInMillis) {
        this.expiryInMillis = expiryInMillis;
        return this;
    }

    public T getValue() {
        return value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy