Class AbstractRegionFactory

    • Field Detail


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

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

      • AbstractRegionFactory

        public AbstractRegionFactory()
    • Method Detail

      • isStarted

        protected boolean isStarted()
      • verifyStarted

        protected void verifyStarted()
      • verifiedStartStatus

        protected boolean verifiedStartStatus()
      • start

        public final void start​(SessionFactoryOptions settings,
                                java.util.Map 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
        settings - The settings in effect.
        configValues - The available config values
        CacheException - Indicates problems starting the L2 cache impl; considered as a sign to stop SessionFactory building.
      • prepareForUse

        protected abstract void prepareForUse​(SessionFactoryOptions settings,
                                              java.util.Map 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
        True if "minimal puts" should be performed by default; false otherwise.
      • qualify

        public java.lang.String qualify​(java.lang.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. The intended consumer of this method is the Session to manage its SharedSessionContractImplementor.getTransactionStartTimestamp() value. It is also expected that this be the value used for this's RegionFactory's CacheTransactionContext
        Specified by:
        nextTimestamp in interface RegionFactory