
io.github.wycst.wast.jdbc.executer.CacheableEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wast Show documentation
Show all versions of wast Show documentation
Wast is a high-performance Java toolset library package that includes JSON, YAML, CSV, HttpClient, JDBC and EL engines
package io.github.wycst.wast.jdbc.executer;
class CacheableEntity {
CacheableEntity(Object entity) {
this.entity = entity;
}
private Object entity;
private long lastHitAt;
Object get() {
lastHitAt = System.currentTimeMillis();
return getEntity();
}
Object getEntity() {
return entity;
}
void set(Object entity) {
lastHitAt = System.currentTimeMillis();
this.entity = entity;
}
long getLastHitAt() {
return lastHitAt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy