org.teiid.cache
Interface CacheFactory

All Known Implementing Classes:
ClusterableCacheFactory, DefaultCacheFactory, JBossCacheFactory

public interface CacheFactory


Method Summary
 void destroy()
          Destroy the cache factory and any caches underneath.
<K,V> Cache<K,V>
get(String location, CacheConfiguration config)
          Create / Get the cache for the give type use
 boolean isReplicated()
          Return true if replicated caches are created by this factory
 

Method Detail

get

<K,V> Cache<K,V> get(String location,
                     CacheConfiguration config)
Create / Get the cache for the give type use

Parameters:
type - cache type
config - configuration setup for the cache
Returns:

destroy

void destroy()
Destroy the cache factory and any caches underneath.


isReplicated

boolean isReplicated()
Return true if replicated caches are created by this factory

Returns:


Copyright © 2011. All Rights Reserved.