org.teiid.cache
Class DefaultCacheFactory

java.lang.Object
  extended by org.teiid.cache.DefaultCacheFactory
All Implemented Interfaces:
java.io.Serializable, CacheFactory

public class DefaultCacheFactory
extends java.lang.Object
implements CacheFactory, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DefaultCacheFactory()
           
DefaultCacheFactory(CacheConfiguration config)
           
 
Method Summary
 void destroy()
          Destroy the cache factory and any caches underneath.
<K,V> Cache<K,V>
get(Cache.Type type, CacheConfiguration config)
          Create / Get the cache for the give type use
 boolean isReplicated()
          Return true if replicated caches are created by this factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheFactory

public DefaultCacheFactory()

DefaultCacheFactory

public DefaultCacheFactory(CacheConfiguration config)
Method Detail

destroy

public void destroy()
Description copied from interface: CacheFactory
Destroy the cache factory and any caches underneath.

Specified by:
destroy in interface CacheFactory

get

public <K,V> Cache<K,V> get(Cache.Type type,
                            CacheConfiguration config)
Description copied from interface: CacheFactory
Create / Get the cache for the give type use

Specified by:
get in interface CacheFactory
Parameters:
type - cache type
config - configuration setup for the cache
Returns:

isReplicated

public boolean isReplicated()
Description copied from interface: CacheFactory
Return true if replicated caches are created by this factory

Specified by:
isReplicated in interface CacheFactory
Returns:


Copyright © 2010. All Rights Reserved.