Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright � 2008-2010 The Apache Software Foundation. All Rights Reserved.