org.mockserver.cache.Entry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
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