org.apache.chemistry.opencmis.client.bindings.cache
Interface CacheLevel

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractMapCacheLevel, ContentTypeCacheLevelImpl, LruCacheLevelImpl, MapCacheLevelImpl

public interface CacheLevel
extends java.io.Serializable

Interface for a level of an hierarchical cache.

Author:
Florian Müller
See Also:
Cache

Method Summary
 java.lang.Object get(java.lang.String key)
          Retrieves an object from the cache level.
 void initialize(java.util.Map<java.lang.String,java.lang.String> parameters)
          Initialize the cache level.
 void put(java.lang.Object value, java.lang.String key)
          Adds an object to the cache level.
 void remove(java.lang.String key)
          Removes an object from this cache level.
 

Method Detail

initialize

void initialize(java.util.Map<java.lang.String,java.lang.String> parameters)
Initialize the cache level.

Parameters:
parameters - level parameters

put

void put(java.lang.Object value,
         java.lang.String key)
Adds an object to the cache level.

Parameters:
value - the object
key - the key at this level

get

java.lang.Object get(java.lang.String key)
Retrieves an object from the cache level.

Parameters:
key - the key at this cache level
Returns:
the object or null if the object doesn't exist

remove

void remove(java.lang.String key)
Removes an object from this cache level.

Parameters:
key - the key at this cache level


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.