Class AbstractRegionFactory

java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
All Implemented Interfaces:
Serializable, RegionFactory, Service, Stoppable
Direct Known Subclasses:
RegionFactoryTemplate

public abstract class AbstractRegionFactory extends Object implements RegionFactory
See Also:
  • Field Details

    • LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES

      public static final List<String> LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES
      Legacy names that used to be the default for the query results region.
    • LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES

      public static final List<String> LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES
      Legacy names that used to be the default for the update timestamps region.
  • Constructor Details

    • AbstractRegionFactory

      public AbstractRegionFactory()
  • Method Details

    • isStarted

      protected boolean isStarted()
    • verifyStarted

      protected void verifyStarted()
    • verifiedStartStatus

      protected boolean verifiedStartStatus()
    • getOptions

      protected SessionFactoryOptions getOptions()
    • start

      public final void start(@Nonnull SessionFactoryOptions settings, @Nonnull Map<String,Object> configValues) throws CacheException
      Description copied from interface: RegionFactory
      Lifecycle callback to perform any necessary initialization of the underlying cache provider. Called exactly once during the construction of a SessionFactoryImpl.
      Specified by:
      start in interface RegionFactory
      Parameters:
      settings - The settings in effect.
      configValues - The available config values
      Throws:
      CacheException - Indicates problems starting the L2 cache impl; considered as a sign to stop SessionFactory building.
    • prepareForUse

      protected abstract void prepareForUse(SessionFactoryOptions settings, Map<String,Object> configValues)
    • stop

      public final void stop()
      Description copied from interface: Stoppable
      Stop phase notification
      Specified by:
      stop in interface Stoppable
    • releaseFromUse

      protected abstract void releaseFromUse()
    • isMinimalPutsEnabledByDefault

      public boolean isMinimalPutsEnabledByDefault()
      Description copied from interface: RegionFactory
      By default, should we perform "minimal puts" when using this second level cache implementation?
      Specified by:
      isMinimalPutsEnabledByDefault in interface RegionFactory
      Returns:
      True if "minimal puts" should be performed by default; false otherwise.
    • getDefaultAccessType

      @Nonnull public AccessType getDefaultAccessType()
      Description copied from interface: RegionFactory
      Get the default access type for any "user model" data.
      Specified by:
      getDefaultAccessType in interface RegionFactory
    • qualify

      @Nonnull public String qualify(@Nonnull String regionName)
      Specified by:
      qualify in interface RegionFactory
    • nextTimestamp

      public long nextTimestamp()
      Description copied from interface: RegionFactory
      Generate a timestamp. This value is generally used for purpose of locking/unlocking cache content depending upon the access strategy being used. It's also expected that this be the value used by the CacheTransactionSynchronization created by this RegionFactory.
      Specified by:
      nextTimestamp in interface RegionFactory
    • getTimeout

      public long getTimeout()
      Specified by:
      getTimeout in interface RegionFactory