@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2861") @ThreadSafe public abstract class StreamTracer extends Object
DO NOT MOCK: Use TestStreamTracer. Mocks are not thread-safe
Constructor and Description |
---|
StreamTracer() |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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.
|
public void streamClosed(Status status)
public void outboundMessage(int seqNo)
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with outboundMessageSent(int, long, long)
for the same message.public void inboundMessage(int seqNo)
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with inboundMessageRead(int, long, long)
for the same message.public void outboundMessageSent(int seqNo, long optionalWireSize, long optionalUncompressedSize)
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with 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)
seqNo
- the sequential number of the message within the stream, starting from 0. It can
be used to correlate with 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)
public void outboundUncompressedSize(long bytes)
public void inboundWireSize(long bytes)
public void inboundUncompressedSize(long bytes)