public class ResourceElement
extends com.fr.third.net.sf.ehcache.Element
限定符和类型 | 方法和说明 |
---|---|
static ResourceElement |
create(ResourceElementKey key,
ResourceElementValue value) |
static ResourceElement |
create(java.lang.String subPath) |
static ResourceElement |
create(java.lang.String subPath,
byte[] data) |
static ResourceElement |
create(java.lang.String subPath,
java.io.InputStream in) |
boolean |
fromSelf()
是否来自本机的缓存
|
byte[] |
getData() |
java.lang.String |
getKeyPath()
缓存key路径(相对路径)
|
java.lang.String |
getMD5()
md5值
|
java.io.InputStream |
getStream() |
java.lang.String |
getSubPath()
对应的资源文件路径
|
ResourceElementKey |
key() |
ResourceElementValue |
value() |
clone, equals, getCreationTime, getExpirationTime, getHitCount, getKey, getLastAccessTime, getLastUpdateTime, getLatestOfCreationAndUpdateTime, getNextToLastAccessTime, getObjectKey, getObjectValue, getSerializedSize, getTimeToIdle, getTimeToLive, getValue, getVersion, hashCode, isEternal, isExpired, isExpired, isKeySerializable, isLifespanSet, isSerializable, resetAccessStatistics, setCreateTime, setEternal, setLifespanDefaults, setTimeToIdle, setTimeToLive, setVersion, toString, updateAccessStatistics, updateUpdateStatistics, usesCacheDefaultLifespan
public static ResourceElement create(ResourceElementKey key, ResourceElementValue value)
public static ResourceElement create(java.lang.String subPath, byte[] data)
public static ResourceElement create(java.lang.String subPath, java.io.InputStream in)
public static ResourceElement create(java.lang.String subPath)
public ResourceElementKey key()
public ResourceElementValue value()
public boolean fromSelf()
public java.lang.String getMD5()
public byte[] getData()
public java.io.InputStream getStream()
public java.lang.String getSubPath()
public java.lang.String getKeyPath()