Home / Function/ writeRstStreamUsingVoidPromise() — netty Function Reference

writeRstStreamUsingVoidPromise() — netty Function Reference

Architecture documentation for the writeRstStreamUsingVoidPromise() function in Http2ConnectionHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aa737438_00cf_1049_4d73_f814c4978406["writeRstStreamUsingVoidPromise()"]
  e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"]
  aa737438_00cf_1049_4d73_f814c4978406 -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5
  fe4b6e12_db64_975f_8a85_aa9d32ead019["writeRstStreamForUnknownStreamUsingVoidPromise()"]
  fe4b6e12_db64_975f_8a85_aa9d32ead019 -->|calls| aa737438_00cf_1049_4d73_f814c4978406
  72a4de1a_ff75_30b9_a9a7_d7ced1368540["writeRstStreamForKnownStreamUsingVoidPromise()"]
  72a4de1a_ff75_30b9_a9a7_d7ced1368540 -->|calls| aa737438_00cf_1049_4d73_f814c4978406
  style aa737438_00cf_1049_4d73_f814c4978406 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 867–883

    private void writeRstStreamUsingVoidPromise(int streamId) throws Exception {
        handler = newHandler();
        final Throwable cause = new RuntimeException("fake exception");
        when(stream.id()).thenReturn(STREAM_ID);
        when(frameWriter.writeRstStream(eq(ctx), eq(streamId), anyLong(), any(ChannelPromise.class)))
                .then(new Answer<ChannelFuture>() {
                    @Override
                    public ChannelFuture answer(InvocationOnMock invocationOnMock) throws Throwable {
                        ChannelPromise promise = invocationOnMock.getArgument(3);
                        assertFalse(promise.isVoid());
                        return promise.setFailure(cause);
                    }
                });
        handler.resetStream(ctx, streamId, STREAM_CLOSED.code(), newVoidPromise(channel));
        verify(frameWriter).writeRstStream(eq(ctx), eq(streamId), anyLong(), any(ChannelPromise.class));
        verify(pipeline).fireExceptionCaught(cause);
    }

Domain

Subdomains

Frequently Asked Questions

What does writeRstStreamUsingVoidPromise() do?
writeRstStreamUsingVoidPromise() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is writeRstStreamUsingVoidPromise() defined?
writeRstStreamUsingVoidPromise() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 867.
What calls writeRstStreamUsingVoidPromise()?
writeRstStreamUsingVoidPromise() is called by 2 function(s): writeRstStreamForKnownStreamUsingVoidPromise, writeRstStreamForUnknownStreamUsingVoidPromise.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free