![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.ehcache.EternalElementData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package net.sf.ehcache;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/**
* Serialized representation of an eternal {@link Element}
*/
public class EternalElementData extends ElementData {
public EternalElementData() {
// for serialization
}
public EternalElementData(final Element element) {
super(element);
}
@Override
public Element createElement(final Object key) {
Element element = new Element(key, value, version, creationTime, lastAccessTime, hitCount, cacheDefaultLifespan, 0,
0, lastUpdateTime);
return element;
}
@Override
protected void writeAttributes(ObjectOutput oos) {
// Do Nothing
}
@Override
protected void readAttributes(ObjectInput in) {
// Do Nothing
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy