Methods Summary |
---|
public Cache | buildCache(java.lang.String regionName, java.util.Properties properties)Construct a Cache representing the "region" within in the underlying cache
provider.
return new TreeCache( getTreeCacheInstance(), regionName, transactionManager );
|
public org.jboss.cache.TreeCache | getTreeCacheInstance()
return ( org.jboss.cache.TreeCache ) super.getCache();
|
public boolean | isMinimalPutsEnabledByDefault()By default, should minimal-puts mode be enabled when using this cache.
Since TreeCache is a clusterable cache and we are only getting a
reference the instance from JNDI, safest to assume a clustered
setup and return true here.
return true;
|
public long | nextTimestamp()Generate a timestamp
return System.currentTimeMillis() / 100;
|
public void | prepare(java.util.Properties properties)
TransactionManagerLookup transactionManagerLookup = TransactionManagerLookupFactory.getTransactionManagerLookup(properties);
if (transactionManagerLookup!=null) {
transactionManager = transactionManagerLookup.getTransactionManager(properties);
}
|