com.rhi.architecture.cache
Interface CacheManager

All Known Implementing Classes:
SimpleCacheManager

public interface CacheManager

Interface for managing the cache. This interface will declare the get/set of cacheable objects into the cache.

Since:
1.0
Author:
G Srinivas

Method Summary
 java.lang.Object get(java.lang.Object pkKey)
          The gives abstraction to the get method in all cache managers, to obtain the cacheable objects from different types of cache.
 void put(java.lang.Object pkKey, java.lang.Object cachedObject)
          The gives abstraction to the put method in all cache managers, to add the cacheable objects to different types of cache.
 

Method Detail

put

public void put(java.lang.Object pkKey,
                java.lang.Object cachedObject)
         throws CacheException
The gives abstraction to the put method in all cache managers, to add the cacheable objects to different types of cache.

Parameters:
pkKey - PrimaryKey of the cacheable object
cachedObject - Cacheable Object
Throws:
CacheException

get

public java.lang.Object get(java.lang.Object pkKey)
The gives abstraction to the get method in all cache managers, to obtain the cacheable objects from different types of cache.

Parameters:
pkKey -
Returns:
Object


Copyright © 2002-2004 Robert Half International. All Rights Reserved.