org.apache.cocoon.pipeline.caching
Interface CacheValue

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractCacheValue, CompleteCacheValue, ObjectCacheValue

public interface CacheValue
extends Serializable


Method Summary
 Object getValue()
           
 boolean isValid(CacheKey cacheKey)
           
 void setValue(Object value)
          Sets value of this cache
 double size()
          Returns size of this CacheValue in bytes.
 void writeTo(OutputStream outputStream)
           
 

Method Detail

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.