Methods Summary |
---|
public Cache | buildCache(java.lang.String regionName, java.util.Properties properties)
ObjectCache cache = factory.createCache(regionName);
if (cache==null) {
throw new CacheException("SwarmCache did not create a cache: " + regionName);
}
return new SwarmCache(cache, regionName);
|
public boolean | isMinimalPutsEnabledByDefault()
return true;
|
public long | nextTimestamp()
return System.currentTimeMillis() / 100;
|
public void | start(java.util.Properties properties)Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
CacheConfiguration config = CacheConfigurationManager.getConfig(properties);
factory = new CacheFactory(config);
|
public void | stop()Callback to perform any necessary cleanup of the underlying cache implementation
during SessionFactory.close().
if (factory != null) {
factory.shutdown();
factory = null;
}
|