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

io.github.wycst.wast.jdbc.executer.CacheableEntity Maven / Gradle / Ivy

Go to download

Wast is a high-performance Java toolset library package that includes JSON, YAML, CSV, HttpClient, JDBC and EL engines

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