@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2861") public static final class ClientStreamTracer.StreamInfo extends java.lang.Object
Note this class doesn't override equals()
and hashCode
, as is the case for
CallOptions
.
Modifier and Type | Class and Description |
---|---|
static class |
ClientStreamTracer.StreamInfo.Builder
Builds
ClientStreamTracer.StreamInfo objects. |
Modifier and Type | Method and Description |
---|---|
CallOptions |
getCallOptions()
Returns the effective CallOptions of the call.
|
int |
getPreviousAttempts()
Returns the number of preceding attempts for the RPC.
|
Attributes |
getTransportAttrs()
Deprecated.
Use
ClientStreamTracer.streamCreated(Attributes, Metadata) to handle
the transport Attributes instead. |
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() |
@Deprecated @Grpc.TransportAttr public Attributes getTransportAttrs()
ClientStreamTracer.streamCreated(Attributes, Metadata)
to handle
the transport Attributes instead.public CallOptions getCallOptions()
public int getPreviousAttempts()
public boolean isTransparentRetry()
public ClientStreamTracer.StreamInfo.Builder toBuilder()
public static ClientStreamTracer.StreamInfo.Builder newBuilder()
public java.lang.String toString()
toString
in class java.lang.Object