what-the-bank/sources/io/grpc/util/ForwardingSubchannel.java

64 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc.util;
import com.google.common.base.MoreObjects;
import io.grpc.Attributes;
import io.grpc.Channel;
import io.grpc.ChannelLogger;
import io.grpc.EquivalentAddressGroup;
import io.grpc.LoadBalancer;
import java.util.List;
/* loaded from: classes6.dex */
public abstract class ForwardingSubchannel extends LoadBalancer.Subchannel {
protected abstract LoadBalancer.Subchannel delegate();
@Override // io.grpc.LoadBalancer.Subchannel
public void start(LoadBalancer.SubchannelStateListener subchannelStateListener) {
delegate().start(subchannelStateListener);
}
@Override // io.grpc.LoadBalancer.Subchannel
public void shutdown() {
delegate().shutdown();
}
@Override // io.grpc.LoadBalancer.Subchannel
public void requestConnection() {
delegate().requestConnection();
}
@Override // io.grpc.LoadBalancer.Subchannel
public List<EquivalentAddressGroup> getAllAddresses() {
return delegate().getAllAddresses();
}
@Override // io.grpc.LoadBalancer.Subchannel
public Attributes getAttributes() {
return delegate().getAttributes();
}
@Override // io.grpc.LoadBalancer.Subchannel
public Channel asChannel() {
return delegate().asChannel();
}
@Override // io.grpc.LoadBalancer.Subchannel
public ChannelLogger getChannelLogger() {
return delegate().getChannelLogger();
}
@Override // io.grpc.LoadBalancer.Subchannel
public Object getInternalSubchannel() {
return delegate().getInternalSubchannel();
}
@Override // io.grpc.LoadBalancer.Subchannel
public void updateAddresses(List<EquivalentAddressGroup> list) {
delegate().updateAddresses(list);
}
public String toString() {
return MoreObjects.toStringHelper(this).add("delegate", delegate()).toString();
}
}