导航菜单

页面标题

页面副标题

SpeedCash v6.5.1482 - ClientStreamTracer.java 源代码

正在查看: SpeedCash v6.5.1482 应用的 ClientStreamTracer.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package io.grpc;

import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import javax.annotation.concurrent.ThreadSafe;

@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861")
@ThreadSafe
public abstract class ClientStreamTracer extends StreamTracer {

    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 {
        public final CallOptions a;
        public final int b;
        public final boolean c;

        public static final class Builder {
            public CallOptions a = CallOptions.DEFAULT;
            public int b;
            public boolean c;

            public StreamInfo build() {
                return new StreamInfo(this.a, this.b, this.c);
            }

            public Builder setCallOptions(CallOptions callOptions) {
                this.a = (CallOptions) Preconditions.checkNotNull(callOptions, "callOptions cannot be null");
                return this;
            }

            public Builder setIsTransparentRetry(boolean z) {
                this.c = z;
                return this;
            }

            public Builder setPreviousAttempts(int i) {
                this.b = i;
                return this;
            }
        }

        public StreamInfo(CallOptions callOptions, int i, boolean z) {
            this.a = (CallOptions) Preconditions.checkNotNull(callOptions, "callOptions");
            this.b = i;
            this.c = z;
        }

        public static Builder newBuilder() {
            return new Builder();
        }

        public CallOptions getCallOptions() {
            return this.a;
        }

        public int getPreviousAttempts() {
            return this.b;
        }

        public boolean isTransparentRetry() {
            return this.c;
        }

        public Builder toBuilder() {
            return new Builder().setCallOptions(this.a).setPreviousAttempts(this.b).setIsTransparentRetry(this.c);
        }

        public String toString() {
            return MoreObjects.toStringHelper(this).add("callOptions", this.a).add("previousAttempts", this.b).add("isTransparentRetry", this.c).toString();
        }
    }

    public void inboundHeaders() {
    }

    public void inboundTrailers(Metadata metadata) {
    }

    public void outboundHeaders() {
    }

    public void streamCreated(Attributes attributes, Metadata metadata) {
    }
}