@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2861") public abstract class ForwardingClientStreamTracer extends ClientStreamTracer
ClientStreamTracer.Factory, ClientStreamTracer.StreamInfo
NAME_RESOLUTION_DELAYED
Constructor and Description |
---|
ForwardingClientStreamTracer() |
Modifier and Type | Method and Description |
---|---|
void |
createPendingStream()
Name resolution is completed and the connection starts getting established.
|
protected abstract ClientStreamTracer |
delegate()
Returns the underlying
ClientStreamTracer . |
void |
inboundHeaders()
Headers has been received from the server.
|
void |
inboundMessage(int seqNo)
An inbound message has been received by the stream.
|
void |
inboundMessageRead(int seqNo,
long optionalWireSize,
long optionalUncompressedSize)
An inbound message has been fully read from the transport.
|
void |
inboundTrailers(Metadata trailers)
Trailing metadata has been received from the server.
|
void |
inboundUncompressedSize(long bytes)
The uncompressed size of some inbound data is revealed.
|
void |
inboundWireSize(long bytes)
The wire size of some inbound data is revealed.
|
void |
outboundHeaders()
Headers has been sent to the socket.
|
void |
outboundMessage(int seqNo)
An outbound message has been passed to the stream.
|
void |
outboundMessageSent(int seqNo,
long optionalWireSize,
long optionalUncompressedSize)
An outbound message has been serialized and sent to the transport.
|
void |
outboundUncompressedSize(long bytes)
The uncompressed size of some outbound data is revealed.
|
void |
outboundWireSize(long bytes)
The wire size of some outbound data is revealed.
|
void |
streamClosed(Status status)
Stream is closed.
|
void |
streamCreated(Attributes transportAttrs,
Metadata headers)
The stream is being created on a ready transport.
|
String |
toString() |
protected abstract ClientStreamTracer delegate()
ClientStreamTracer
.public void streamCreated(Attributes transportAttrs, Metadata headers)
ClientStreamTracer
streamCreated
in class ClientStreamTracer
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()
ClientStreamTracer
createPendingStream
in class ClientStreamTracer
public void outboundHeaders()
ClientStreamTracer
outboundHeaders
in class ClientStreamTracer
public void inboundHeaders()
ClientStreamTracer
inboundHeaders
in class ClientStreamTracer
public void inboundTrailers(Metadata trailers)
ClientStreamTracer
inboundTrailers
in class ClientStreamTracer
trailers
- the mutable trailing metadata. Modifications to it will be seen by
interceptors and the application.public void streamClosed(Status status)
StreamTracer
streamClosed
in class StreamTracer
public void outboundMessage(int seqNo)
StreamTracer
outboundMessage
in class StreamTracer
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with StreamTracer.outboundMessageSent(int, long, long)
for the same message.public void inboundMessage(int seqNo)
StreamTracer
inboundMessage
in class StreamTracer
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with StreamTracer.inboundMessageRead(int, long, long)
for the same message.public void outboundMessageSent(int seqNo, long optionalWireSize, long optionalUncompressedSize)
StreamTracer
outboundMessageSent
in class StreamTracer
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with StreamTracer.outboundMessage(int)
for the same message.optionalWireSize
- the wire size of the message. -1 if unknownoptionalUncompressedSize
- the uncompressed serialized size of the message. -1 if unknownpublic void inboundMessageRead(int seqNo, long optionalWireSize, long optionalUncompressedSize)
StreamTracer
inboundMessageRead
in class StreamTracer
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with StreamTracer.inboundMessage(int)
for the same message.optionalWireSize
- the wire size of the message. -1 if unknownoptionalUncompressedSize
- the uncompressed serialized size of the message. -1 if unknownpublic void outboundWireSize(long bytes)
StreamTracer
outboundWireSize
in class StreamTracer
public void outboundUncompressedSize(long bytes)
StreamTracer
outboundUncompressedSize
in class StreamTracer
public void inboundWireSize(long bytes)
StreamTracer
inboundWireSize
in class StreamTracer
public void inboundUncompressedSize(long bytes)
StreamTracer
inboundUncompressedSize
in class StreamTracer