44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
|
package io.grpc;
|
||
|
|
||
|
import com.google.common.base.MoreObjects;
|
||
|
import io.grpc.LoadBalancer;
|
||
|
import io.grpc.NameResolver;
|
||
|
import java.util.Map;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public abstract class LoadBalancerProvider extends LoadBalancer.Factory {
|
||
|
private static final NameResolver.ConfigOrError UNKNOWN_CONFIG = NameResolver.ConfigOrError.fromConfig(new UnknownConfig());
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
return this == obj;
|
||
|
}
|
||
|
|
||
|
public abstract String getPolicyName();
|
||
|
|
||
|
public abstract int getPriority();
|
||
|
|
||
|
public abstract boolean isAvailable();
|
||
|
|
||
|
public final String toString() {
|
||
|
return MoreObjects.toStringHelper(this).add("policy", getPolicyName()).add("priority", getPriority()).add("available", isAvailable()).toString();
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return super.hashCode();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class UnknownConfig {
|
||
|
UnknownConfig() {
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
return "service config is unused";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public NameResolver.ConfigOrError parseLoadBalancingPolicyConfig(Map<String, ?> map) {
|
||
|
return UNKNOWN_CONFIG;
|
||
|
}
|
||
|
}
|