Class ConstantGlobalPoolStrategy

  • All Implemented Interfaces:
    IGlobalPoolStrategy

    public class ConstantGlobalPoolStrategy
    extends java.lang.Object
    implements IGlobalPoolStrategy
    Simple strategy that demands a constant number of workers from the pool.
    • Field Detail

      • timeout

        protected long timeout
        The worker timeout.
      • maxcnt

        protected int maxcnt
        The max number of workers.
      • wpp

        protected int wpp
        The worker per proxy count.
    • Constructor Detail

      • ConstantGlobalPoolStrategy

        public ConstantGlobalPoolStrategy()
        Create a new constant strategy.
      • ConstantGlobalPoolStrategy

        public ConstantGlobalPoolStrategy​(long timeout,
                                          int maxcnt,
                                          int wpp)
        Create a new constant strategy.