@Internal public final class HazelcastHibernateRegionFactories extends Object
RegionFactory objects based on Hazelcast.| Modifier and Type | Field and Description |
|---|---|
static boolean |
REPLICATE_VIA_INVALIDATION_ENABLED |
| Modifier and Type | Method and Description |
|---|---|
static org.hibernate.cache.spi.RegionFactory |
createRegionFactory(Supplier<com.hazelcast.core.HazelcastInstance> hazelcastSupplier,
com.atlassian.cache.CacheFactory cacheFactory,
com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
Creates a Hibernate
RegionFactory, returning either a HazelcastCacheRegionFactory (wrapped in a
HazelcastIMapRegionFactoryWrapper, or a HazelcastLocalCacheRegionFactory if REPLICATE_VIA_INVALIDATION_ENABLED
is set. |
static HibernateManagedRegionCacheLookup |
hideManagedCachesIfLocalRegionsNotEnabled(HibernateManagedRegionCacheLookup hibernateManagedRegionCacheLookup)
We only want to supply
ManagedCaches representing Hibernate cache regions if
we're configured to use local cache regions. |
public static final boolean REPLICATE_VIA_INVALIDATION_ENABLED
public static org.hibernate.cache.spi.RegionFactory createRegionFactory(Supplier<com.hazelcast.core.HazelcastInstance> hazelcastSupplier, com.atlassian.cache.CacheFactory cacheFactory, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
RegionFactory, returning either a HazelcastCacheRegionFactory (wrapped in a
HazelcastIMapRegionFactoryWrapper, or a HazelcastLocalCacheRegionFactory if REPLICATE_VIA_INVALIDATION_ENABLED
is set.public static HibernateManagedRegionCacheLookup hideManagedCachesIfLocalRegionsNotEnabled(HibernateManagedRegionCacheLookup hibernateManagedRegionCacheLookup)
ManagedCaches representing Hibernate cache regions if
we're configured to use local cache regions. Otherwise, the ManagedCaches representing those regions are provided
elsewhere via atlassian-cache itself.Copyright © 2003–2021 Atlassian. All rights reserved.