Class ZombieUpstream
- java.lang.Object
-
- org.apache.shenyu.common.dto.convert.selector.ZombieUpstream
-
public class ZombieUpstream extends java.lang.Objectthis is zombie divide upstream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZombieUpstream.Builderclass builder.
-
Constructor Summary
Constructors Constructor Description ZombieUpstream()no args constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZombieUpstream.Builderbuilder()class builder.booleanequals(java.lang.Object o)CommonUpstreamgetCommonUpstream()get commonUpstream.java.lang.StringgetSelectorId()get selectorId.intgetZombieCheckTimes()get zombieCheckTimes.inthashCode()voidsetCommonUpstream(CommonUpstream commonUpstream)set commonUpstream.voidsetSelectorName(java.lang.String selectorId)set selectorId.voidsetZombieCheckTimes(int zombieCheckTimes)set zombieCheckTimes.java.lang.StringtoString()static ZombieUpstreamtransform(CommonUpstream commonUpstream, int zombieCheckTimes, java.lang.String selectorId)create zombie upstream with Common upstream.
-
-
-
Method Detail
-
builder
public static ZombieUpstream.Builder builder()
class builder.- Returns:
- Builder
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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.
-
-