Package io.grpc.internal.testing
Interface TestStreamTracer
- All Known Implementing Classes:
TestClientStreamTracer
,TestServerStreamTracer
,TestStreamTracer.TestBaseStreamTracer
public interface TestStreamTracer
A
StreamTracer
suitable for testing.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
AStreamTracer
suitable for testing. -
Method Summary
Modifier and TypeMethodDescriptionvoid
await()
Waits for the stream to be done.boolean
Waits for the stream to be done.long
Returns to sum of all sizes passed toStreamTracer.inboundUncompressedSize(long)
.long
Returns to sum of all sizes passed toStreamTracer.inboundWireSize(long)
.long
Returns to sum of al sizes passed toStreamTracer.outboundUncompressedSize(long)
.long
Returns to sum of all sizes passed toStreamTracer.outboundWireSize(long)
.io.grpc.Status
Returns the status passed toStreamTracer.streamClosed(io.grpc.Status)
.Returns the next captured outbound message event.Returns the next captured outbound message event.void
setFailDuplicateCallbacks
(boolean fail) Sets whether to fail on unexpected duplicate calls to callback methods.
-
Method Details
-
await
Waits for the stream to be done.- Throws:
InterruptedException
-
await
Waits for the stream to be done.- Throws:
InterruptedException
-
getStatus
io.grpc.Status getStatus()Returns the status passed toStreamTracer.streamClosed(io.grpc.Status)
. -
getInboundWireSize
long getInboundWireSize()Returns to sum of all sizes passed toStreamTracer.inboundWireSize(long)
. -
getInboundUncompressedSize
long getInboundUncompressedSize()Returns to sum of all sizes passed toStreamTracer.inboundUncompressedSize(long)
. -
getOutboundWireSize
long getOutboundWireSize()Returns to sum of all sizes passed toStreamTracer.outboundWireSize(long)
. -
getOutboundUncompressedSize
long getOutboundUncompressedSize()Returns to sum of al sizes passed toStreamTracer.outboundUncompressedSize(long)
. -
setFailDuplicateCallbacks
void setFailDuplicateCallbacks(boolean fail) Sets whether to fail on unexpected duplicate calls to callback methods. -
nextOutboundEvent
Returns the next captured outbound message event. -
nextInboundEvent
String nextInboundEvent()Returns the next captured outbound message event.
-