Package io.grpc
Class ClientStreamTracer.StreamInfo.Builder
java.lang.Object
io.grpc.ClientStreamTracer.StreamInfo.Builder
- Enclosing class:
ClientStreamTracer.StreamInfo
Builds
ClientStreamTracer.StreamInfo
objects.- Since:
- 1.21.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new StreamInfo.setCallOptions
(CallOptions callOptions) Sets the effective CallOptions of the call.setIsTransparentRetry
(boolean isTransparentRetry) Sets whether the stream is a transparent retry.setPreviousAttempts
(int previousAttempts) Set the number of preceding attempts of the RPC.
-
Field Details
-
callOptions
-
previousAttempts
private int previousAttempts -
isTransparentRetry
private boolean isTransparentRetry
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setCallOptions
Sets the effective CallOptions of the call. This field is optional. -
setPreviousAttempts
Set the number of preceding attempts of the RPC.- Since:
- 1.40.0
-
setIsTransparentRetry
Sets whether the stream is a transparent retry.- Since:
- 1.40.0
-
build
Builds a new StreamInfo.
-