Package io.grpc
Class ClientStreamTracer.StreamInfo.Builder
- java.lang.Object
-
- io.grpc.ClientStreamTracer.StreamInfo.Builder
-
- Enclosing class:
- ClientStreamTracer.StreamInfo
public static final class ClientStreamTracer.StreamInfo.Builder extends Object
BuildsClientStreamTracer.StreamInfo
objects.- Since:
- 1.21.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientStreamTracer.StreamInfo
build()
Builds a new StreamInfo.ClientStreamTracer.StreamInfo.Builder
setCallOptions(CallOptions callOptions)
Sets the effective CallOptions of the call.ClientStreamTracer.StreamInfo.Builder
setIsTransparentRetry(boolean isTransparentRetry)
Sets whether the stream is a transparent retry.ClientStreamTracer.StreamInfo.Builder
setPreviousAttempts(int previousAttempts)
Set the number of preceding attempts of the RPC.
-
-
-
Method Detail
-
setCallOptions
public ClientStreamTracer.StreamInfo.Builder setCallOptions(CallOptions callOptions)
Sets the effective CallOptions of the call. This field is optional.
-
setPreviousAttempts
public ClientStreamTracer.StreamInfo.Builder setPreviousAttempts(int previousAttempts)
Set the number of preceding attempts of the RPC.- Since:
- 1.40.0
-
setIsTransparentRetry
public ClientStreamTracer.StreamInfo.Builder setIsTransparentRetry(boolean isTransparentRetry)
Sets whether the stream is a transparent retry.- Since:
- 1.40.0
-
build
public ClientStreamTracer.StreamInfo build()
Builds a new StreamInfo.
-
-