StreamTracer for the client-side.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ClientStreamTracer.Factory
Factory class for |
| public static class | ClientStreamTracer.StreamInfo
Information about a stream. |
| Modifier and Type | Field and Description |
|---|---|
| public static final CallOptions. | NAME_RESOLUTION_DELAYED
Indicates how long the call was delayed, in nanoseconds, due to waiting for name resolution result. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | inboundTrailers(Metadata
the mutable trailing metadata. Modifications to it will be seen by
interceptors and the application. trailers)Trailing metadata has been received from the server. |
| public void | |
| public void | streamCreated(Attributes transportAttrs, Metadata
the mutable initial metadata. Modifications to it will be sent to the socket but
not be seen by client interceptors and the application. headers)The stream is being created on a ready transport. |
| NAME_RESOLUTION_DELAYED | back to summary |
|---|---|
| public static final CallOptions. Indicates how long the call was delayed, in nanoseconds, due to waiting for name resolution result. If the call option is not set, the call did not experience name resolution delay. | |
| ClientStreamTracer | back to summary |
|---|---|
| public ClientStreamTracer() | |
| createPendingStream | back to summary |
|---|---|
| public void createPendingStream() Name resolution is completed and the connection starts getting established. This method is only invoked on the streams that encounter such delay. gRPC buffers the client call if the remote address and configurations, e.g. timeouts and retry policy, are not ready. Asynchronously gRPC internally does the name resolution to get this information. The streams that are processed immediately on ready transports by the time the RPC comes do not go through the pending process, thus this callback will not be invoked. | |
| inboundHeaders | back to summary |
|---|---|
| public void inboundHeaders() Headers has been received from the server. | |
| inboundTrailers | back to summary |
|---|---|
| public void inboundTrailers(Metadata trailers) Trailing metadata has been received from the server.
| |
| outboundHeaders | back to summary |
|---|---|
| public void outboundHeaders() Headers has been sent to the socket. | |
| streamCreated | back to summary |
|---|---|
| public void streamCreated(Attributes transportAttrs, Metadata headers) The stream is being created on a ready transport.
| |
ClientStreamTracer.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClientStreamTracer | newClientStreamTracer(ClientStreamTracer.
information about the stream info,the mutable headers of the stream. It can be safely mutated within this
method. Changes made to it will be sent by the stream. It should not be saved
because it is not safe for read or write after the method returns. headers)Creates a |
| Factory | back to summary |
|---|---|
| public Factory() | |
| newClientStreamTracer | back to summary |
|---|---|
| public ClientStreamTracer newClientStreamTracer(ClientStreamTracer. Creates a
| |
Note this class doesn't override equals() and hashCode, as is the case for
CallOptions.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ClientStreamTracer.StreamInfo.Builder
Builds |
| Modifier and Type | Field and Description |
|---|---|
| private final CallOptions | |
| private final boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CallOptions | |
| public int | |
| public boolean | |
| public static ClientStreamTracer. | |
| public ClientStreamTracer. | |
| public String |
| callOptions | back to summary |
|---|---|
| private final CallOptions callOptions | |
| isTransparentRetry | back to summary |
|---|---|
| private final boolean isTransparentRetry | |
| previousAttempts | back to summary |
|---|---|
| private final int previousAttempts | |
| StreamInfo | back to summary |
|---|---|
| pack-priv StreamInfo(CallOptions callOptions, int previousAttempts, boolean isTransparentRetry) | |
| getCallOptions | back to summary |
|---|---|
| public CallOptions getCallOptions() Returns the effective CallOptions of the call. | |
| getPreviousAttempts | back to summary |
|---|---|
| public int getPreviousAttempts() Returns the number of preceding attempts for the RPC.
| |
| isTransparentRetry | back to summary |
|---|---|
| public boolean isTransparentRetry() Whether the stream is a transparent retry.
| |
| newBuilder | back to summary |
|---|---|
| public static ClientStreamTracer. Creates an empty Builder.
| |
| toBuilder | back to summary |
|---|---|
| public ClientStreamTracer. Converts this StreamInfo into a new Builder.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
StreamInfo objects.
| Modifier and Type | Field and Description |
|---|---|
| private CallOptions | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ClientStreamTracer. | |
| public ClientStreamTracer. | |
| public ClientStreamTracer. | |
| public ClientStreamTracer. |
| callOptions | back to summary |
|---|---|
| private CallOptions callOptions | |
| isTransparentRetry | back to summary |
|---|---|
| private boolean isTransparentRetry | |
| previousAttempts | back to summary |
|---|---|
| private int previousAttempts | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| public ClientStreamTracer. Builds a new StreamInfo. | |
| setCallOptions | back to summary |
|---|---|
| public ClientStreamTracer. Sets the effective CallOptions of the call. This field is optional. | |
| setIsTransparentRetry | back to summary |
|---|---|
| public ClientStreamTracer. Sets whether the stream is a transparent retry.
| |
| setPreviousAttempts | back to summary |
|---|---|
| public ClientStreamTracer. Set the number of preceding attempts of the RPC.
| |