MCPcopy Create free account
hub / github.com/grpc/grpc-java / flush

Method flush

core/src/main/java/io/grpc/internal/MessageFramer.java:307–312  ·  view source on GitHub ↗

Flushes any buffered data in the framer to the sink.

()

Source from the content-addressed store, hash-verified

305 * Flushes any buffered data in the framer to the sink.
306 */
307 @Override
308 public void flush() {
309 if (buffer != null && buffer.readableBytes() > 0) {
310 commitToSink(false, true);
311 }
312 }
313
314 /**
315 * Indicates whether or not this framer has been closed via a call to either

Callers

nothing calls this directly

Calls 2

commitToSinkMethod · 0.95
readableBytesMethod · 0.65

Tested by

no test coverage detected