@Override public void start(SessionFactoryOptions settings, Properties properties) throws CacheException { Logger.LOGGER.deprecatedRegionFactory(this.getClass().getName(), this.getClass().getSuperclass().getSuperclass().getName(), SHARED, this.shared); properties.setProperty(SHARED, this.shared); super.start(settings, properties); } }
@Override public long nextTimestamp() { return factory.nextTimestamp(); }
@Override public void stop() { log.debug( "Stop region factory" ); stopCacheRegions(); stopCacheManager(); }
@Override public Configuration getPendingPutsCacheConfiguration() { return delegate.getPendingPutsCacheConfiguration(); }
@Override protected AdvancedCache getCache(String regionName, DataType type, CacheDataDescription metadata) { AdvancedCache cache = super.getCache(regionName, type, metadata); return wrapCache == null ? cache : wrapCache.apply(cache); }
@Override public InfinispanBaseRegion buildTimestampsRegion(String regionName) { String prefix = delegate.getSettings().getCacheRegionPrefix(); if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName; return (InfinispanBaseRegion) delegate.buildTimestampsRegion(regionName, null); }
@Override public InfinispanBaseRegion buildQueryResultsRegion(String regionName) { String prefix = delegate.getSettings().getCacheRegionPrefix(); if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName; return (InfinispanBaseRegion) delegate.buildQueryResultsRegion(regionName, null); }
@Override public void stop() { delegate.stop(); }
@Override public void setCacheManager(EmbeddedCacheManager cm) { delegate.setCacheManager(cm); }
public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws CacheException { return delegate.buildQueryResultsRegion(regionName, properties); }
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { return delegate.buildEntityRegion(regionName, properties, metadata); }
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { return delegate.buildNaturalIdRegion( regionName, properties, metadata ); }
@Override public boolean isMinimalPutsEnabledByDefault() { return delegate.isMinimalPutsEnabledByDefault(); }
public CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { return delegate.buildCollectionRegion(regionName, properties, metadata); }
public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws CacheException { return delegate.buildTimestampsRegion(regionName, properties); }
@Override public EmbeddedCacheManager getCacheManager() { return delegate.getCacheManager(); }
@Override public long nextTimestamp() { return delegate.nextTimestamp(); } }
public void stop() { if (locallyAdded) ClusterAware.removeCacheManager(cacheManagerName); delegate.stop(); }
public long nextTimestamp() { return delegate.nextTimestamp(); } }
@Override public long nextTimestamp() { if (timeService == null) { return super.nextTimestamp(); } else { return timeService.wallClockTime(); } }