org.weda.cache.impl
Class SimpleCache

java.lang.Object
  extended by org.weda.cache.impl.SimpleCache
All Implemented Interfaces:
java.io.Serializable, CacheService

public class SimpleCache
extends java.lang.Object
implements CacheService, java.io.Serializable

Простая реализация tim.docarch.service.CacheService. Объекты кеша храняться в HashMap.

Author:
tim
See Also:
Serialized Form

Constructor Summary
SimpleCache()
           
 
Method Summary
 CacheEntity get(java.lang.String id)
          Возвращает объект кеша по его идентификатору или null если объекта с указанным идентификатором нет кеше.
 void release(java.lang.String id)
          Удаляет объект кеша из кеша по его идентификатору если объект с указанным идентификатором присутствует в кеше.
 void releaseAll()
          Удаляет все объекты из кеша.
 void setCacheEntity(java.lang.String id, CacheEntity entity)
          Сохраняет объект кеша в кеше.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCache

public SimpleCache()
Method Detail

release

public void release(java.lang.String id)
Description copied from interface: CacheService
Удаляет объект кеша из кеша по его идентификатору если объект с указанным идентификатором присутствует в кеше.

Specified by:
release in interface CacheService

get

public CacheEntity get(java.lang.String id)
Description copied from interface: CacheService
Возвращает объект кеша по его идентификатору или null если объекта с указанным идентификатором нет кеше.

Specified by:
get in interface CacheService

setCacheEntity

public void setCacheEntity(java.lang.String id,
                           CacheEntity entity)
Description copied from interface: CacheService
Сохраняет объект кеша в кеше.

Specified by:
setCacheEntity in interface CacheService

releaseAll

public void releaseAll()
Description copied from interface: CacheService
Удаляет все объекты из кеша.

Specified by:
releaseAll in interface CacheService


Copyright © 2005-2006 . All Rights Reserved.