47 lines
1.3 KiB
Java
47 lines
1.3 KiB
Java
package io.grpc.internal;
|
|
|
|
import com.google.common.base.MoreObjects;
|
|
import com.google.common.base.Preconditions;
|
|
import io.grpc.NameResolver;
|
|
|
|
/* loaded from: classes6.dex */
|
|
abstract class ForwardingNameResolver extends NameResolver {
|
|
private final NameResolver delegate;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public ForwardingNameResolver(NameResolver nameResolver) {
|
|
Preconditions.checkNotNull(nameResolver, "delegate can not be null");
|
|
this.delegate = nameResolver;
|
|
}
|
|
|
|
@Override // io.grpc.NameResolver
|
|
public String getServiceAuthority() {
|
|
return this.delegate.getServiceAuthority();
|
|
}
|
|
|
|
@Override // io.grpc.NameResolver
|
|
@Deprecated
|
|
public void start(NameResolver.Listener listener) {
|
|
this.delegate.start(listener);
|
|
}
|
|
|
|
@Override // io.grpc.NameResolver
|
|
public void start(NameResolver.Listener2 listener2) {
|
|
this.delegate.start(listener2);
|
|
}
|
|
|
|
@Override // io.grpc.NameResolver
|
|
public void shutdown() {
|
|
this.delegate.shutdown();
|
|
}
|
|
|
|
@Override // io.grpc.NameResolver
|
|
public void refresh() {
|
|
this.delegate.refresh();
|
|
}
|
|
|
|
public String toString() {
|
|
return MoreObjects.toStringHelper(this).add("delegate", this.delegate).toString();
|
|
}
|
|
}
|