Home / Function/ simple() — netty Function Reference

simple() — netty Function Reference

Architecture documentation for the simple() function in JfrEventSafeTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ab5f8bdd_49ce_0e80_3945_8818061ca9c0["simple()"]
  97a6d9e1_ef11_5700_139d_c384c1c848ab["JfrEventSafeTest"]
  ab5f8bdd_49ce_0e80_3945_8818061ca9c0 -->|defined in| 97a6d9e1_ef11_5700_139d_c384c1c848ab
  style ab5f8bdd_49ce_0e80_3945_8818061ca9c0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/JfrEventSafeTest.java lines 42–57

    @Test
    @EnabledForJreRange(min = JRE.JAVA_17) // RecordingStream
    public void simple() throws Throwable {
        try (RecordingStream stream = new RecordingStream()) {
            stream.enable(MyEvent.class.getName());
            CompletableFuture<String> result = new CompletableFuture<>();
            stream.onEvent(MyEvent.class.getName(), e -> result.complete(e.getString("foo")));
            stream.startAsync();

            MyEvent event = new MyEvent();
            event.foo = "bar";
            event.commit();

            assertEquals("bar", result.get(10, TimeUnit.SECONDS));
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does simple() do?
simple() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/JfrEventSafeTest.java.
Where is simple() defined?
simple() is defined in common/src/test/java/io/netty/util/internal/JfrEventSafeTest.java at line 42.

Analyze Your Own Codebase

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

Try Supermodel Free