Class TransportTracer

java.lang.Object
io.grpc.internal.TransportTracer

public final class TransportTracer extends Object
A class for gathering statistics about a transport. This is an experimental feature. Can only be called from the transport thread unless otherwise noted.
  • Constructor Details Link icon

    • TransportTracer Link icon

      public TransportTracer()
  • Method Details Link icon

    • getStats Link icon

      Returns a read only set of current stats.
    • reportLocalStreamStarted Link icon

      public void reportLocalStreamStarted()
      Called by the client to report a stream has started.
    • reportRemoteStreamStarted Link icon

      public void reportRemoteStreamStarted()
      Called by the server to report a stream has started.
    • reportStreamClosed Link icon

      public void reportStreamClosed(boolean success)
      Reports that a stream closed with the specified Status.
    • reportMessageSent Link icon

      public void reportMessageSent(int numMessages)
      Reports that some messages were successfully sent. numMessages must be at least 0.
    • reportMessageReceived Link icon

      public void reportMessageReceived()
      Reports that a message was successfully received. This method is thread safe.
    • reportKeepAliveSent Link icon

      public void reportKeepAliveSent()
      Reports that a keep alive message was sent.
    • setFlowControlWindowReader Link icon

      public void setFlowControlWindowReader(TransportTracer.FlowControlReader flowControlWindowReader)
      Registers a TransportTracer.FlowControlReader that can be used to read the local and remote flow control window sizes.
    • getDefaultFactory Link icon

      public static TransportTracer.Factory getDefaultFactory()