org.zodiac.sentinel.base.config.SentinelFlowInfo Maven / Gradle / Ivy
The newest version!
package org.zodiac.sentinel.base.config;
import java.util.Objects;
import org.zodiac.sentinel.base.constants.SentinelBaseConstants;
public class SentinelFlowInfo {
private int coldFactor = SentinelBaseConstants.DEFAULT_COLD_FACTOR;
public SentinelFlowInfo() {
super();
}
public int getColdFactor() {
return coldFactor;
}
public void setColdFactor(int coldFactor) {
this.coldFactor = coldFactor;
}
@Override
public int hashCode() {
return Objects.hash(coldFactor);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
SentinelFlowInfo other = (SentinelFlowInfo)obj;
return coldFactor == other.coldFactor;
}
@Override
public String toString() {
return "SentinelFlowInfo [coldFactor=" + coldFactor + "]";
}
}