public final class TransportTracer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransportTracer.Factory |
static interface |
TransportTracer.FlowControlReader
An interface for reading the local and remote flow control windows of the transport.
|
static class |
TransportTracer.FlowControlWindows
A container that holds the local and remote flow control window sizes.
|
Constructor and Description |
---|
TransportTracer() |
Modifier and Type | Method and Description |
---|---|
static TransportTracer.Factory |
getDefaultFactory() |
InternalChannelz.TransportStats |
getStats()
Returns a read only set of current stats.
|
void |
reportKeepAliveSent()
Reports that a keep alive message was sent.
|
void |
reportLocalStreamStarted()
Called by the client to report a stream has started.
|
void |
reportMessageReceived()
Reports that a message was successfully received.
|
void |
reportMessageSent(int numMessages)
Reports that some messages were successfully sent.
|
void |
reportRemoteStreamStarted()
Called by the server to report a stream has started.
|
void |
reportStreamClosed(boolean success)
Reports that a stream closed with the specified Status.
|
void |
setFlowControlWindowReader(TransportTracer.FlowControlReader flowControlWindowReader)
Registers a
TransportTracer.FlowControlReader that can be used to read the local and remote flow
control window sizes. |
public InternalChannelz.TransportStats getStats()
public void reportLocalStreamStarted()
public void reportRemoteStreamStarted()
public void reportStreamClosed(boolean success)
public void reportMessageSent(int numMessages)
numMessages
must be at least 0.public void reportMessageReceived()
public void reportKeepAliveSent()
public void setFlowControlWindowReader(TransportTracer.FlowControlReader flowControlWindowReader)
TransportTracer.FlowControlReader
that can be used to read the local and remote flow
control window sizes.public static TransportTracer.Factory getDefaultFactory()
Copyright © 2018. All rights reserved.