Class ZombieUpstream


  • public class ZombieUpstream
    extends java.lang.Object
    this is zombie divide upstream.
    • Constructor Detail

      • ZombieUpstream

        public ZombieUpstream()
        no args constructor.
    • Method Detail

      • getCommonUpstream

        public CommonUpstream getCommonUpstream()
        get commonUpstream.
        Returns:
        commonUpstream
      • setCommonUpstream

        public void setCommonUpstream​(CommonUpstream commonUpstream)
        set commonUpstream.
        Parameters:
        commonUpstream - commonUpstream
      • getZombieCheckTimes

        public int getZombieCheckTimes()
        get zombieCheckTimes.
        Returns:
        zombieCheckTimes
      • setZombieCheckTimes

        public void setZombieCheckTimes​(int zombieCheckTimes)
        set zombieCheckTimes.
        Parameters:
        zombieCheckTimes - zombieCheckTimes
      • getSelectorId

        public java.lang.String getSelectorId()
        get selectorId.
        Returns:
        selectorId
      • setSelectorName

        public void setSelectorName​(java.lang.String selectorId)
        set selectorId.
        Parameters:
        selectorId - selectorId
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • transform

        public static ZombieUpstream transform​(CommonUpstream commonUpstream,
                                               int zombieCheckTimes,
                                               java.lang.String selectorId)
        create zombie upstream with Common upstream.
        Parameters:
        commonUpstream - CommonUpstream origin divide upstream.
        zombieCheckTimes - total check times.
        selectorId - origin selector id.
        Returns:
        new zombie upstream.