@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.
|
Constructor and Description |
---|
ClientStreamTracer() |
Modifier and Type | Method and Description |
---|---|
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 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 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.