DO NOT MOCK: Use TestStreamTracer. Mocks are not thread-safe
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | inboundMessage(int
the sequential number of the message within the stream, starting from 0. It can
be used to correlate with seqNo)inboundMessageRead for the same message.An inbound message has been received by the stream. |
| public void | inboundMessageRead(int
the sequential number of the message within the stream, starting from 0. It can
be used to correlate with seqNo, long inboundMessage(int) for the same message.the wire size of the message. -1 if unknown optionalWireSize, long the uncompressed serialized size of the message. -1 if unknown optionalUncompressedSize)An inbound message has been fully read from the transport. |
| public void | |
| public void | |
| public void | outboundMessage(int
the sequential number of the message within the stream, starting from 0. It can
be used to correlate with seqNo)outboundMessageSent for the same message.An outbound message has been passed to the stream. |
| public void | outboundMessageSent(int
the sequential number of the message within the stream, starting from 0. It can
be used to correlate with seqNo, long outboundMessage(int) for the same message.the wire size of the message. -1 if unknown optionalWireSize, long the uncompressed serialized size of the message. -1 if unknown optionalUncompressedSize)An outbound message has been serialized and sent to the transport. |
| public void | |
| public void | |
| public void |
| StreamTracer | back to summary |
|---|---|
| public StreamTracer() | |
| inboundMessage | back to summary |
|---|---|
| public void inboundMessage(int seqNo) An 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.
| |
| inboundMessageRead | back to summary |
|---|---|
| public void inboundMessageRead(int seqNo, long optionalWireSize, long optionalUncompressedSize) An inbound message has been fully read from the transport.
| |
| inboundUncompressedSize | back to summary |
|---|---|
| public void inboundUncompressedSize(long bytes) The uncompressed size of some inbound data is revealed. This can only used to record the accumulative received uncompressed size. There is no guarantee wrt timing or granularity of this method. | |
| inboundWireSize | back to summary |
|---|---|
| public void inboundWireSize(long bytes) The wire size of some inbound data is revealed. This can only be used to record the accumulative received wire size. There is no guarantee wrt timing or granularity of this method. | |
| outboundMessage | back to summary |
|---|---|
| public void outboundMessage(int seqNo) An outbound message has been passed to 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 serialized or not.
| |
| outboundMessageSent | back to summary |
|---|---|
| public void outboundMessageSent(int seqNo, long optionalWireSize, long optionalUncompressedSize) An outbound message has been serialized and sent to the transport.
| |
| outboundUncompressedSize | back to summary |
|---|---|
| public void outboundUncompressedSize(long bytes) The uncompressed size of some outbound data is revealed. This can only used to record the accumulative outbound uncompressed size. There is no guarantee wrt timing or granularity of this method. | |
| outboundWireSize | back to summary |
|---|---|
| public void outboundWireSize(long bytes) The wire size of some outbound data is revealed. This can only used to record the accumulative outbound wire size. There is no guarantee wrt timing or granularity of this method. | |
| streamClosed | back to summary |
|---|---|
| public void streamClosed(Status status) Stream is closed. This will be called exactly once. | |