org.apache.cocoon.pipeline.caching
Interface CacheValue
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- AbstractCacheValue, CompleteCacheValue, ObjectCacheValue
public interface CacheValue
- extends Serializable
isValid
boolean isValid(CacheKey cacheKey)
writeTo
void writeTo(OutputStream outputStream)
throws IOException
- Throws:
IOException
getValue
Object getValue()
setValue
void setValue(Object value)
- Sets value of this cache
- Parameters:
value
-
size
double size()
- Returns size of this
CacheValue
in bytes.
- Returns:
- size of cached value in bytes or -1 if something goes wrong.
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.