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 classAStreamTracersuitable for testing. -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()Waits for the stream to be done.booleanWaits for the stream to be done.longReturns to sum of all sizes passed toStreamTracer.inboundUncompressedSize(long).longReturns to sum of all sizes passed toStreamTracer.inboundWireSize(long).longReturns to sum of al sizes passed toStreamTracer.outboundUncompressedSize(long).longReturns to sum of all sizes passed toStreamTracer.outboundWireSize(long).io.grpc.StatusReturns the status passed toStreamTracer.streamClosed(Status).Returns the next captured outbound message event.Returns the next captured outbound message event.voidsetFailDuplicateCallbacks(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(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
-
nextInboundEvent
String nextInboundEvent()Returns the next captured outbound message event.
-