Class BootstrapCacheLoaderFactory<T extends BootstrapCacheLoader>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BOOTSTRAP_ASYNCHRONOUSLY
      The property name expected in ehcache.xml for the bootstrap asyncrhonously switch.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract T createBootstrapCacheLoader​(java.util.Properties properties)
      Create a BootstrapCacheLoader
      protected boolean extractBoolean​(java.util.Properties properties, java.lang.String prop, boolean defaultValue)
      Will retrieve the boolean value from the properties, defaulting if property isn't present
      protected boolean extractBootstrapAsynchronously​(java.util.Properties properties)
      Extracts the value of bootstrapAsynchronously from the properties
      protected long extractLong​(java.util.Properties properties, java.lang.String prop, long defaultValue)
      Will retrieve the boolean value from the properties, defaulting if property isn't present
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BOOTSTRAP_ASYNCHRONOUSLY

        public static final java.lang.String BOOTSTRAP_ASYNCHRONOUSLY
        The property name expected in ehcache.xml for the bootstrap asyncrhonously switch.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BootstrapCacheLoaderFactory

        public BootstrapCacheLoaderFactory()
    • Method Detail

      • createBootstrapCacheLoader

        public abstract T createBootstrapCacheLoader​(java.util.Properties properties)
        Create a BootstrapCacheLoader
        Parameters:
        properties - implementation specific properties. These are configured as comma separated name value pairs in ehcache.xml
        Returns:
        a constructed BootstrapCacheLoader
      • extractBootstrapAsynchronously

        protected boolean extractBootstrapAsynchronously​(java.util.Properties properties)
        Extracts the value of bootstrapAsynchronously from the properties
        Parameters:
        properties - the properties passed by the CacheManager, read from the configuration file
        Returns:
        true if to be bootstrapped asynchronously, false otherwise
      • extractBoolean

        protected boolean extractBoolean​(java.util.Properties properties,
                                         java.lang.String prop,
                                         boolean defaultValue)
        Will retrieve the boolean value from the properties, defaulting if property isn't present
        Parameters:
        properties - the properties to use
        prop - the property name to look for
        defaultValue - the default value if property is missing
        Returns:
        the value, or it's default, for the property
      • extractLong

        protected long extractLong​(java.util.Properties properties,
                                   java.lang.String prop,
                                   long defaultValue)
        Will retrieve the boolean value from the properties, defaulting if property isn't present
        Parameters:
        properties - the properties to use
        prop - the property name to look for
        defaultValue - the default value if property is missing
        Returns:
        the value, or it's default, for the property