Package io.grpc
Class ClientStreamTracer.StreamInfo
- java.lang.Object
-
- io.grpc.ClientStreamTracer.StreamInfo
-
- Enclosing class:
- ClientStreamTracer
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861") public static final class ClientStreamTracer.StreamInfo extends Object
Information about a stream.Note this class doesn't override
equals()andhashCode, as is the case forCallOptions.- Since:
- 1.20.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientStreamTracer.StreamInfo.BuilderBuildsClientStreamTracer.StreamInfoobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallOptionsgetCallOptions()Returns the effective CallOptions of the call.intgetPreviousAttempts()Returns the number of preceding attempts for the RPC.booleanisTransparentRetry()Whether the stream is a transparent retry.static ClientStreamTracer.StreamInfo.BuildernewBuilder()Creates an empty Builder.ClientStreamTracer.StreamInfo.BuildertoBuilder()Converts this StreamInfo into a new Builder.StringtoString()
-
-
-
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
-
toBuilder
public ClientStreamTracer.StreamInfo.Builder toBuilder()
Converts this StreamInfo into a new Builder.- Since:
- 1.21.0
-
newBuilder
public static ClientStreamTracer.StreamInfo.Builder newBuilder()
Creates an empty Builder.- Since:
- 1.21.0
-
-