Interface RegionFactory

    • Field Detail

      • DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME

        static final String DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME
        See Also:
        Constant Field Values
      • DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME

        static final String DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • start

        void start​(SessionFactoryOptions settings,
                   Map<String,​Object> configValues)
            throws CacheException
        Lifecycle callback to perform any necessary initialization of the underlying cache provider. Called exactly once during the construction of a SessionFactoryImpl.
        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.
      • isMinimalPutsEnabledByDefault

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

        AccessType getDefaultAccessType()
        Get the default access type for any "user model" data.
      • nextTimestamp

        long nextTimestamp()
        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.
        API Note:
        This "timestamp" need not be related to timestamp in the Date.getTime()/System.currentTimeMillis() sense. It just needs to be an incrementing value.
      • getTimeout

        default long getTimeout()