Class MaxThreadsOption

  • All Implemented Interfaces:
    java.io.Serializable, org.kie.api.conf.KieBaseOption, org.kie.api.conf.Option, org.kie.api.conf.SingleValueKieBaseOption, org.kie.api.conf.SingleValueOption, org.kie.api.conf.SingleValueRuleBaseOption

    public class MaxThreadsOption
    extends java.lang.Object
    implements org.kie.api.conf.SingleValueRuleBaseOption
    A class for the max threads configuration.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.kie.api.conf.OptionKey<MaxThreadsOption> KEY  
      static java.lang.String PROPERTY_NAME
      The property name for the max threads
      • Fields inherited from interface org.kie.api.conf.SingleValueRuleBaseOption

        TYPE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static MaxThreadsOption get​(int threshold)
      This is a factory method for this Max Threads configuration.
      int getMaxThreads()
      Returns the maximum number of threads for partition evaluation
      java.lang.String getPropertyName()
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.kie.api.conf.Option

        propertyName
      • Methods inherited from interface org.kie.api.conf.SingleValueRuleBaseOption

        type
    • Field Detail

      • PROPERTY_NAME

        public static final java.lang.String PROPERTY_NAME
        The property name for the max threads
        See Also:
        Constant Field Values
    • Method Detail

      • get

        public static MaxThreadsOption get​(int threshold)
        This is a factory method for this Max Threads configuration. The factory method is a best practice for the case where the actual object construction is changed in the future.
        Parameters:
        threshold - the maximum number of threads for partition evaluation
        Returns:
        the actual type safe max threads configuration.
      • getPropertyName

        public java.lang.String getPropertyName()
        Specified by:
        getPropertyName in interface org.kie.api.conf.Option
      • getMaxThreads

        public int getMaxThreads()
        Returns the maximum number of threads for partition evaluation
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object