正在查看: 逼多多 v3.6.2 应用的 ClientStreamTracer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 逼多多 v3.6.2 应用的 ClientStreamTracer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package io.grpc;
import io.grpc.CallOptions;
import q.g;
import q.l;
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861")
public abstract class ClientStreamTracer extends StreamTracer {
public static final CallOptions.Key<Long> NAME_RESOLUTION_DELAYED = CallOptions.Key.create("io.grpc.ClientStreamTracer.NAME_RESOLUTION_DELAYED");
public static abstract class Factory {
public ClientStreamTracer newClientStreamTracer(StreamInfo streamInfo, Metadata metadata) {
throw new UnsupportedOperationException("Not implemented");
}
}
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861")
public static final class StreamInfo {
private final CallOptions callOptions;
private final boolean isTransparentRetry;
private final int previousAttempts;
public static final class Builder {
private CallOptions callOptions = CallOptions.DEFAULT;
private boolean isTransparentRetry;
private int previousAttempts;
Builder() {
}
public StreamInfo build() {
return new StreamInfo(this.callOptions, this.previousAttempts, this.isTransparentRetry);
}
public Builder setCallOptions(CallOptions callOptions) {
this.callOptions = (CallOptions) l.o(callOptions, "callOptions cannot be null");
return this;
}
public Builder setIsTransparentRetry(boolean z) {
this.isTransparentRetry = z;
return this;
}
public Builder setPreviousAttempts(int i) {
this.previousAttempts = i;
return this;
}
}
StreamInfo(CallOptions callOptions, int i, boolean z) {
this.callOptions = (CallOptions) l.o(callOptions, "callOptions");
this.previousAttempts = i;
this.isTransparentRetry = z;
}
public static Builder newBuilder() {
return new Builder();
}
public CallOptions getCallOptions() {
return this.callOptions;
}
public int getPreviousAttempts() {
return this.previousAttempts;
}
public boolean isTransparentRetry() {
return this.isTransparentRetry;
}
public Builder toBuilder() {
return new Builder().setCallOptions(this.callOptions).setPreviousAttempts(this.previousAttempts).setIsTransparentRetry(this.isTransparentRetry);
}
public String toString() {
return g.c(this).d("callOptions", this.callOptions).b("previousAttempts", this.previousAttempts).e("isTransparentRetry", this.isTransparentRetry).toString();
}
}
@Internal
public void addOptionalLabel(String str, String str2) {
}
public void createPendingStream() {
}
public void inboundHeaders() {
}
public void inboundTrailers(Metadata metadata) {
}
public void outboundHeaders() {
}
public void streamCreated(Attributes attributes, Metadata metadata) {
}
}