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

com.haiwanwan.common.objectpool.Poolable Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.haiwanwan.common.objectpool;

/**
 * @author Daniel
 */
public class Poolable {

    private final T object;
    private final int partition;
    private long lastAccessTs;

    public Poolable(T t, int partition) {
        this.object = t;
        this.partition = partition;
    }

    public T getObject() {
        return object;
    }

    public int getPartition() {
        return partition;
    }

    public long getLastAccessTs() {
        return lastAccessTs;
    }

    public void setLastAccessTs(long lastAccessTs) {
        this.lastAccessTs = lastAccessTs;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy