Class StrategyConfig


  • public class StrategyConfig
    extends Object
    函数策略配置。
    • Constructor Detail

      • StrategyConfig

        public StrategyConfig()
    • Method Detail

      • getConcurrency

        public Integer getConcurrency()
        单函数最大实例数,v1取值0和-1,v2取值-1到1000 -1代表该函数实例数无限制 0代表该函数被禁用
        Returns:
        concurrency
      • setConcurrency

        public void setConcurrency​(Integer concurrency)
      • getConcurrentNum

        public Integer getConcurrentNum()
        单实例最大并发数,v2版本才支持,取值-1到200000
        Returns:
        concurrentNum
      • setConcurrentNum

        public void setConcurrentNum​(Integer concurrentNum)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object