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()
and hashCode
, as is the case for
CallOptions
.
- Since:
- 1.20.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
BuildsClientStreamTracer.StreamInfo
objects. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallOptions
private final boolean
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionStreamInfo
(CallOptions callOptions, int previousAttempts, boolean isTransparentRetry) -
Method Summary
Modifier and TypeMethodDescriptionReturns the effective CallOptions of the call.int
Returns the number of preceding attempts for the RPC.boolean
Whether the stream is a transparent retry.Creates an empty Builder.Converts this StreamInfo into a new Builder.toString()
-
Field Details
-
callOptions
-
previousAttempts
private final int previousAttempts -
isTransparentRetry
private final boolean isTransparentRetry
-
-
Constructor Details
-
StreamInfo
StreamInfo(CallOptions callOptions, int previousAttempts, boolean isTransparentRetry)
-
-
Method Details
-
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
Converts this StreamInfo into a new Builder.- Since:
- 1.21.0
-
newBuilder
Creates an empty Builder.- Since:
- 1.21.0
-
toString
-