Package io.grpc

Class ClientStreamTracer.StreamInfo

  • Enclosing class:
    ClientStreamTracer

    @ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861")
    public static final class ClientStreamTracer.StreamInfo
    extends java.lang.Object
    Information about a stream.

    Note this class doesn't override equals() and hashCode, as is the case for CallOptions.

    Since:
    1.20.0
    • Field Detail

      • previousAttempts

        private final int previousAttempts
      • isTransparentRetry

        private final boolean isTransparentRetry
    • Constructor Detail

      • StreamInfo

        StreamInfo​(CallOptions callOptions,
                   int previousAttempts,
                   boolean isTransparentRetry)
    • Method Detail

      • getCallOptions

        public CallOptions getCallOptions()
        Returns the effective CallOptions of the call.
      • getPreviousAttempts

        public int getPreviousAttempts()
        Returns the number of preceding attempts for the RPC.
        Since:
        1.40.0
      • isTransparentRetry

        public boolean isTransparentRetry()
        Whether the stream is a transparent retry.
        Since:
        1.40.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object