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 classClientStreamTracer.StreamInfo.BuilderBuildsClientStreamTracer.StreamInfoobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallOptionsgetCallOptions()Returns the effective CallOptions of the call.AttributesgetTransportAttrs()Returns the attributes of the transport that this stream was created on.static ClientStreamTracer.StreamInfo.BuildernewBuilder()Creates an empty Builder.ClientStreamTracer.StreamInfo.BuildertoBuilder()Converts this StreamInfo into a new Builder.java.lang.StringtoString()
-
-
-
Method Detail
-
getTransportAttrs
@TransportAttr public Attributes getTransportAttrs()
Returns the attributes of the transport that this stream was created on.
-
getCallOptions
public CallOptions getCallOptions()
Returns the effective CallOptions of the call.
-
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:
toStringin classjava.lang.Object
-
-