MCPcopy Index your code
hub / github.com/apache/tomcat / replace

Method replace

java/org/apache/coyote/http2/Stream.java:854–864  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852 * because Stream instances are retained for a period after the Stream closes.
853 */
854 final void replace() {
855 int remaining;
856 // May be null if stream was closed before any DATA frames were processed.
857 ByteBuffer inputByteBuffer = getInputByteBuffer(false);
858 if (inputByteBuffer == null) {
859 remaining = 0;
860 } else {
861 remaining = inputByteBuffer.remaining();
862 }
863 handler.replaceStream(this, new RecycledStream(getConnectionId(), getIdentifier(), state, remaining));
864 }
865
866
867 /*

Callers 2

closeMethod · 0.95
processMethod · 0.45

Calls 5

getInputByteBufferMethod · 0.95
remainingMethod · 0.95
getConnectionIdMethod · 0.95
replaceStreamMethod · 0.80
getIdentifierMethod · 0.80

Tested by

no test coverage detected