com.intel.gpe.clients.api.cache
Interface ICache

All Known Implementing Classes:
Cache, DummyCache

public interface ICache

The generic interface to a GPE client cache.

Version:
$Id: ICache.java,v 1.1 2006/04/11 08:51:52 lukichev Exp $
Author:
Alexander Lukichev

Method Summary
 void clear(IdChain prefix)
          Remove all the entities which id starts with the prefix.
 java.lang.Object get(IdChain client, javax.xml.namespace.QName property, java.lang.Class clazz)
          Get the stored property of the entity from the cache.
 void put(IdChain client, javax.xml.namespace.QName property, java.lang.Class clazz, java.lang.Object object)
          Store a property of the entity in the cache.
 

Method Detail

get

java.lang.Object get(IdChain client,
                     javax.xml.namespace.QName property,
                     java.lang.Class clazz)
Get the stored property of the entity from the cache.

Parameters:
client - The id of the entity (generally the client object)
property - The qname of the property
clazz - The class of the property object
Returns:
The stored value

put

void put(IdChain client,
         javax.xml.namespace.QName property,
         java.lang.Class clazz,
         java.lang.Object object)
Store a property of the entity in the cache.

Parameters:
client - The id of the entity (generally the client object)
property - The qname of the property
clazz - The class of the property object
object - The value to store

clear

void clear(IdChain prefix)
Remove all the entities which id starts with the prefix.

Parameters:
prefix - The prefix


Copyright © 2008. All Rights Reserved.