org.norther.tammi.root.hbm.cache
Class FactoryCacheProvider

java.lang.Object
  extended by org.norther.tammi.root.hbm.cache.FactoryCacheProvider
All Implemented Interfaces:
CacheProvider

public class FactoryCacheProvider
extends Object
implements CacheProvider

A persister factory cache provider.

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

Field Summary
static String CACHE_PROPERTY_PREFIX
          The cache property prefix.
 
Constructor Summary
FactoryCacheProvider()
          Constructs a new provider.
 
Method Summary
 Cache buildCache(String region, Properties props)
           
 boolean isMinimalPutsEnabledByDefault()
           
 long nextTimestamp()
           
 void start(Properties properties)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_PROPERTY_PREFIX

public static final String CACHE_PROPERTY_PREFIX
The cache property prefix.

See Also:
Constant Field Values
Constructor Detail

FactoryCacheProvider

public FactoryCacheProvider()
Constructs a new provider.

Method Detail

buildCache

public Cache buildCache(String region,
                        Properties props)
                 throws CacheException
Specified by:
buildCache in interface CacheProvider
Throws:
CacheException

nextTimestamp

public long nextTimestamp()
Specified by:
nextTimestamp in interface CacheProvider

start

public void start(Properties properties)
           throws CacheException
Specified by:
start in interface CacheProvider
Throws:
CacheException

stop

public void stop()
Specified by:
stop in interface CacheProvider

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()
Specified by:
isMinimalPutsEnabledByDefault in interface CacheProvider


Copyright © 2004 The Norther Organization. All rights reserved.