invokeLater() — netty Function Reference
Architecture documentation for the invokeLater() function in QuicheQuicStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dcc85143_930d_6847_5c1d_18334644fce5["invokeLater()"] 77188bb7_e7ad_de01_3b54_5bc50b9e2df1["QuicStreamChannelUnsafe"] dcc85143_930d_6847_5c1d_18334644fce5 -->|defined in| 77188bb7_e7ad_de01_3b54_5bc50b9e2df1 1123715f_0f63_323f_9bab_77f6d3c50fff["close()"] 1123715f_0f63_323f_9bab_77f6d3c50fff -->|calls| dcc85143_930d_6847_5c1d_18334644fce5 9480cb89_9c96_28a9_4217_4c121000c348["deregister()"] 9480cb89_9c96_28a9_4217_4c121000c348 -->|calls| dcc85143_930d_6847_5c1d_18334644fce5 1123715f_0f63_323f_9bab_77f6d3c50fff["close()"] dcc85143_930d_6847_5c1d_18334644fce5 -->|calls| 1123715f_0f63_323f_9bab_77f6d3c50fff style dcc85143_930d_6847_5c1d_18334644fce5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicStreamChannel.java lines 618–635
private void invokeLater(Runnable task) {
try {
// This method is used by outbound operation implementations to trigger an inbound event later.
// They do not trigger an inbound event immediately because an outbound operation might have been
// triggered by another inbound event handler method. If fired immediately, the call stack
// will look like this for example:
//
// handlerA.inboundBufferUpdated() - (1) an inbound handler method closes a connection.
// -> handlerA.ctx.close()
// -> channel.unsafe.close()
// -> handlerA.channelInactive() - (2) another inbound handler method called while in (1) yet
//
// which means the execution of two inbound handler methods of the same handler overlap undesirably.
eventLoop().execute(task);
} catch (RejectedExecutionException e) {
LOGGER.warn("Can't invoke task later as EventLoop rejected it", e);
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does invokeLater() do?
invokeLater() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicStreamChannel.java.
Where is invokeLater() defined?
invokeLater() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicStreamChannel.java at line 618.
What does invokeLater() call?
invokeLater() calls 1 function(s): close.
What calls invokeLater()?
invokeLater() is called by 2 function(s): close, deregister.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free