Class OptimizerFactory


  • public class OptimizerFactory
    extends Object
    Factory for Optimizer instances.
    • Method Detail

      • isPooledOptimizer

        public static boolean isPooledOptimizer​(String optimizerName)
        Does the given optimizer name represent a pooled strategy?
        Parameters:
        optimizerName - The name of the optimizer
        Returns:
        true indicates the optimizer is a pooled strategy.
      • buildOptimizer

        @Deprecated
        public static Optimizer buildOptimizer​(String type,
                                               Class returnClass,
                                               int incrementSize)
        Builds an optimizer
        Parameters:
        type - The optimizer type, either a short-hand name or the Optimizer class name.
        returnClass - The generated value java type
        incrementSize - The increment size.
        Returns:
        The built optimizer
      • buildOptimizer

        public static Optimizer buildOptimizer​(String type,
                                               Class returnClass,
                                               int incrementSize,
                                               long explicitInitialValue)
        Builds an optimizer
        Parameters:
        type - The optimizer type, either a short-hand name or the Optimizer class name.
        returnClass - The generated value java type
        incrementSize - The increment size.
        explicitInitialValue - The user supplied initial-value (-1 indicates the user did not specify).
        Returns:
        The built optimizer
      • determineImplicitOptimizerName

        public static String determineImplicitOptimizerName​(int incrementSize,
                                                            Properties configSettings)
        Determine the optimizer to use when there was not one explicitly specified.