org.norther.tammi.root.db.cache
Class FactoryCacheAdapter<K,V>

java.lang.Object
  extended by org.norther.tammi.root.db.cache.FactoryCacheAdapter<K,V>
Type Parameters:
K - the cache key type.
V - the cache value type.
Direct Known Subclasses:
HibernateCacheAdapter, OJBCacheAdapter

public abstract class FactoryCacheAdapter<K,V>
extends Object

An adapter to the persister factory cache to be applied as the shared application cache in a two level cache system.

Version:
$Id: FactoryCacheAdapter.java,v 1.9 2009/09/28 15:08:34 cvsimp Exp $
Author:
Ilkka Priha

Field Summary
static String ALLOW_EXPIRED_PROPERTY
          The allow expired property.
static String AUTO_REFRESH_DECLINED_PROPERTY
          The auto refresh declined property.
static String DEFAULT_EXPIRATION_TIME_PROPERTY
          The default expiration time property.
static String DISCARD_OVERLOADED_PROPERTY
          The discard overloaded property.
static String EXPIRATION_LIMIT_PROPERTY
          The expiration limit property.
static String EXPIRATION_SLEEP_INTERVAL_PROPERTY
          The expiration sleep interval property.
static String EXPIRATION_THRESHOLD_PROPERTY
          The expiration threshold property.
static String MAX_EXPIRATION_TIME_PROPERTY
          Themax expiration time property.
 
Constructor Summary
FactoryCacheAdapter(String className, String alias, Properties props)
          Constructs a new adapter.
 
Method Summary
protected  ConcurrentMap<K,V> getClientCache()
          Gets the client cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOW_EXPIRED_PROPERTY

public static final String ALLOW_EXPIRED_PROPERTY
The allow expired property.

See Also:
Constant Field Values

DISCARD_OVERLOADED_PROPERTY

public static final String DISCARD_OVERLOADED_PROPERTY
The discard overloaded property.

See Also:
Constant Field Values

AUTO_REFRESH_DECLINED_PROPERTY

public static final String AUTO_REFRESH_DECLINED_PROPERTY
The auto refresh declined property.

See Also:
Constant Field Values

MAX_EXPIRATION_TIME_PROPERTY

public static final String MAX_EXPIRATION_TIME_PROPERTY
Themax expiration time property.

See Also:
Constant Field Values

DEFAULT_EXPIRATION_TIME_PROPERTY

public static final String DEFAULT_EXPIRATION_TIME_PROPERTY
The default expiration time property.

See Also:
Constant Field Values

EXPIRATION_SLEEP_INTERVAL_PROPERTY

public static final String EXPIRATION_SLEEP_INTERVAL_PROPERTY
The expiration sleep interval property.

See Also:
Constant Field Values

EXPIRATION_LIMIT_PROPERTY

public static final String EXPIRATION_LIMIT_PROPERTY
The expiration limit property.

See Also:
Constant Field Values

EXPIRATION_THRESHOLD_PROPERTY

public static final String EXPIRATION_THRESHOLD_PROPERTY
The expiration threshold property.

See Also:
Constant Field Values
Constructor Detail

FactoryCacheAdapter

public FactoryCacheAdapter(String className,
                           String alias,
                           Properties props)
Constructs a new adapter.

Parameters:
className - the persister class name.
alias - the connection alias.
props - the configuration properties.
Method Detail

getClientCache

protected ConcurrentMap<K,V> getClientCache()
Gets the client cache.

Returns:
the client cache or null.


Copyright © 2004 The Norther Organization. All rights reserved.