net.sf.hibernate.cache
Class SwarmCacheProvider

java.lang.Object
  extended bynet.sf.hibernate.cache.SwarmCacheProvider
All Implemented Interfaces:
CacheProvider

public class SwarmCacheProvider
extends Object
implements CacheProvider

Support for SwarmCache replicated cache. SwarmCache does not support locking, so strict "read-write" semantics are unsupported.

Author:
Jason Carreira

Constructor Summary
SwarmCacheProvider()
           
 
Method Summary
 Cache buildCache(String s, Properties properties)
          Configure the cache
 long nextTimestamp()
          Generate a timestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwarmCacheProvider

public SwarmCacheProvider()
Method Detail

buildCache

public Cache buildCache(String s,
                        Properties properties)
                 throws CacheException
Description copied from interface: CacheProvider
Configure the cache

Specified by:
buildCache in interface CacheProvider
Parameters:
s - the name of the cache region
properties - configuration settings
Throws:
CacheException

nextTimestamp

public long nextTimestamp()
Description copied from interface: CacheProvider
Generate a timestamp

Specified by:
nextTimestamp in interface CacheProvider