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 java.lang.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 class
ClientStreamTracer.StreamInfo.Builder
BuildsClientStreamTracer.StreamInfo
objects.
-
Field Summary
Fields Modifier and Type Field Description private CallOptions
callOptions
private boolean
isTransparentRetry
private int
previousAttempts
-
Constructor Summary
Constructors Constructor Description StreamInfo(CallOptions callOptions, int previousAttempts, boolean isTransparentRetry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallOptions
getCallOptions()
Returns the effective CallOptions of the call.int
getPreviousAttempts()
Returns the number of preceding attempts for the RPC.boolean
isTransparentRetry()
Whether the stream is a transparent retry.static ClientStreamTracer.StreamInfo.Builder
newBuilder()
Creates an empty Builder.ClientStreamTracer.StreamInfo.Builder
toBuilder()
Converts this StreamInfo into a new Builder.java.lang.String
toString()
-
-
-
Field Detail
-
callOptions
private final CallOptions callOptions
-
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
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-