@Override public EntityRegion buildEntityRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException { final HazelcastEntityRegion<LocalRegionCache> region = new HazelcastEntityRegion<LocalRegionCache>(instance, regionName, properties, metadata, new LocalRegionCache(regionName, instance, metadata)); cleanupService.registerCache(region.getCache()); return region; }
public EntityRegion buildEntityRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException { final HazelcastEntityRegion<LocalRegionCache> region = new HazelcastEntityRegion<LocalRegionCache>(instance, regionName, properties, metadata, new LocalRegionCache(regionName, instance, metadata)); cleanupService.registerCache(region.getCache()); return region; }
/** {@inheritDoc} */ @Override public EntityRegion buildEntityRegion(String regionName, Properties props, CacheDataDescription metadata) throws CacheException { return new HibernateEntityRegion(this, regionName, accessStgyFactory.node(), accessStgyFactory.regionCache(regionName), metadata); }
@Override public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { throw new NoCacheRegionFactoryAvailableException(); }
@Override public EntityRegion buildEntityRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException { return new HazelcastEntityRegion<IMapRegionCache>(instance, regionName, properties, metadata, new IMapRegionCache(regionName, instance, properties, metadata)); }
@Override public EntityRegion getRegion() { return delegate.getHazelcastRegion(); }
public EntityRegion buildEntityRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException { return new HazelcastEntityRegion<IMapRegionCache>(instance, regionName, properties, metadata, new IMapRegionCache(regionName, instance, properties, metadata)); }
public EntityRegion getRegion() { return delegate.getHazelcastRegion(); }
/** {@inheritDoc} */ @Override public EntityRegion getRegion() { return HibernateEntityRegion.this; }
private net.sf.ehcache.Cache getCache(Class clazz) throws IllegalAccessException { EntityPersister entityPersister = ((SessionFactoryImplementor) sessionFactory()).getEntityPersister(clazz.getName() ); EntityRegion region = entityPersister.getCacheAccessStrategy().getRegion(); Field cacheField = getField(region.getClass(), "cache"); return (net.sf.ehcache.Cache) cacheField.get(region); }
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { return new MemcachedEntityRegion(getCache(regionName), settings, metadata, properties); }
public EntityRegion getRegion() { return region; }
@Override public EntityRegion getRegion() { return region; }
@Override public EntityRegion getRegion() { return entityMemcachedRegion; }
private net.sf.ehcache.Cache getCache(Class clazz) throws IllegalAccessException { EntityPersister entityPersister = ((SessionFactoryImplementor) getSessionFactory()).getEntityPersister(clazz.getName() ); EntityRegion region = entityPersister.getCacheAccessStrategy().getRegion(); Field cacheField = getField(region.getClass(), "cache"); return (net.sf.ehcache.Cache) cacheField.get(region); }
/** * Get the wrapped entity cache region * * @return The underlying region */ public EntityRegion getRegion();
/** * Get the wrapped naturalId cache region * * @return The underlying region */ @Override public EntityRegion getRegion() { return (EntityRegion) _region; }
/** * Build a cache region specialized for storing entity data. * * @param regionName The name of the region. * @param properties Configuration properties. * @param metadata Information regarding the type of data to be cached * * @return The built region * * @throws CacheException Indicates problems building the region. */ @Override public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { return new TayzGridEntityRegion(regionName, properties, metadata); }