Code example for Settings

Methods: getCacheRegionPrefixgetRegionFactory

0
		this.region = settings.getRegionFactory().buildTimestampsRegion( regionName, props ); 
	} 
    @SuppressWarnings({"UnusedDeclaration"}) 
    public UpdateTimestampsCache(Settings settings, Properties props) 
            throws HibernateException { 
        this(settings, props, null); 
    } 
 
	@SuppressWarnings({"UnnecessaryBoxing"}) 
	public void preinvalidate(Serializable[] spaces) throws CacheException { 
		readWriteLock.writeLock().lock(); 
 
		try { 
			Long ts = new Long( region.nextTimestamp() + region.getTimeout() ); 
			for ( Serializable space : spaces ) { 
	            LOG.debugf("Pre-invalidating space [%s]", space); 
				//put() has nowait semantics, is this really appropriate? 
				//note that it needs to be async replication, never local or sync 
				region.put( space, ts ); 
				if ( factory != null && factory.getStatistics().isStatisticsEnabled() ) { 
Experience pair programming with AI  Get Codota for Java