Package io.grpc.grpclb
Class GrpclbClientLoadRecorder.StreamTracer
- java.lang.Object
-
- io.grpc.StreamTracer
-
- io.grpc.ClientStreamTracer
-
- io.grpc.grpclb.GrpclbClientLoadRecorder.StreamTracer
-
- Enclosing class:
- GrpclbClientLoadRecorder
private class GrpclbClientLoadRecorder.StreamTracer extends ClientStreamTracer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.grpc.ClientStreamTracer
ClientStreamTracer.Factory, ClientStreamTracer.StreamInfo
-
-
Field Summary
Fields Modifier and Type Field Description private booleananythingReceivedprivate booleanheadersSent-
Fields inherited from class io.grpc.ClientStreamTracer
NAME_RESOLUTION_DELAYED
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStreamTracer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinboundHeaders()Headers has been received from the server.voidinboundMessage(int seqNo)An inbound message has been received by the stream.voidoutboundHeaders()Headers has been sent to the socket.voidstreamClosed(Status status)Stream is closed.-
Methods inherited from class io.grpc.ClientStreamTracer
addOptionalLabel, createPendingStream, inboundHeaders, inboundTrailers, streamCreated
-
Methods inherited from class io.grpc.StreamTracer
inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize
-
-
-
-
Method Detail
-
outboundHeaders
public void outboundHeaders()
Description copied from class:ClientStreamTracerHeaders has been sent to the socket.- Overrides:
outboundHeadersin classClientStreamTracer
-
inboundHeaders
public void inboundHeaders()
Description copied from class:ClientStreamTracerHeaders has been received from the server.- Overrides:
inboundHeadersin classClientStreamTracer
-
inboundMessage
public void inboundMessage(int seqNo)
Description copied from class:StreamTracerAn inbound message has been received by the stream. This is called as soon as the stream knows about the message, but doesn't have further guarantee such as whether the message is deserialized or not.- Overrides:
inboundMessagein classStreamTracer- Parameters:
seqNo- the sequential number of the message within the stream, starting from 0. It can be used to correlate withStreamTracer.inboundMessageRead(int, long, long)for the same message.
-
streamClosed
public void streamClosed(Status status)
Description copied from class:StreamTracerStream is closed. This will be called exactly once.- Overrides:
streamClosedin classStreamTracer
-
-