Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.database.cache.custom
Interface ObjectCache

All Known Subinterfaces:
StatisticsObjectCache
All Known Implementing Classes:
AutoCache, FIFOCache, HybridCache, LRUCache, MultiCache, TimerCache

public interface ObjectCache

Generic caching mechanism.


Method Summary
 Object clear(Serializable key)
          Clears an object from the cache by key.
 void clearAll()
          Clears the entire cache.
 Object get(Serializable key)
          Gets an object from the cache by key, or returns null if that object is not cached.
 String getType()
          Gets the common name of the type of objects to cache.
 void put(Serializable key, Object object)
          Adds an object to the cache.
 void setType(String type)
          Sets the common name of the type of objects to cache.
 

Method Detail

getType

String getType()
Gets the common name of the type of objects to cache.


setType

void setType(String type)
Sets the common name of the type of objects to cache.


put

void put(Serializable key,
         Object object)
Adds an object to the cache.


get

Object get(Serializable key)
Gets an object from the cache by key, or returns null if that object is not cached.


clear

Object clear(Serializable key)
Clears an object from the cache by key.


clearAll

void clearAll()
Clears the entire cache.


Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.