@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2861") @ThreadSafe public abstract class ClientStreamTracer extends StreamTracer
StreamTracer
for the client-side.Modifier and Type | Class and Description |
---|---|
static class |
ClientStreamTracer.Factory
Factory class for
ClientStreamTracer . |
static class |
ClientStreamTracer.StreamInfo
Information about a stream.
|
Modifier and Type | Field and Description |
---|---|
static CallOptions.Key<Boolean> |
NAME_RESOLUTION_DELAYED
The call was delayed due to waiting for name resolution result.
|
Constructor and Description |
---|
ClientStreamTracer() |
Modifier and Type | Method and Description |
---|---|
void |
createPendingStream()
Name resolution is completed and the connection starts getting established.
|
void |
inboundHeaders()
Headers has been received from the server.
|
void |
inboundTrailers(Metadata trailers)
Trailing metadata has been received from the server.
|
void |
outboundHeaders()
Headers has been sent to the socket.
|
void |
streamCreated(Attributes transportAttrs,
Metadata headers)
The stream is being created on a ready transport.
|
inboundMessage, inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize, streamClosed
public static final CallOptions.Key<Boolean> NAME_RESOLUTION_DELAYED
public void streamCreated(@Grpc.TransportAttr Attributes transportAttrs, Metadata headers)
headers
- the mutable initial metadata. Modifications to it will be sent to the socket but
not be seen by client interceptors and the application.public void createPendingStream()
public void outboundHeaders()
public void inboundHeaders()
public void inboundTrailers(Metadata trailers)
trailers
- the mutable trailing metadata. Modifications to it will be seen by
interceptors and the application.