Home / Class/ AsyncTaskDecorator Class — netty Architecture

AsyncTaskDecorator Class — netty Architecture

Architecture documentation for the AsyncTaskDecorator class in ReferenceCountedOpenSslEngine.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f794abc6_292a_6488_5491_3a257573f4a7["AsyncTaskDecorator"]
  e8cf4c21_519c_af0d_e66f_ef135c52b428["ReferenceCountedOpenSslEngine.java"]
  f794abc6_292a_6488_5491_3a257573f4a7 -->|defined in| e8cf4c21_519c_af0d_e66f_ef135c52b428
  a3516ec5_28d8_e0ef_6527_1856a88b4321["AsyncTaskDecorator()"]
  f794abc6_292a_6488_5491_3a257573f4a7 -->|method| a3516ec5_28d8_e0ef_6527_1856a88b4321
  95ae4cb4_5bf5_b0cb_5de8_5e089df71a1a["run()"]
  f794abc6_292a_6488_5491_3a257573f4a7 -->|method| 95ae4cb4_5bf5_b0cb_5de8_5e089df71a1a

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java lines 1520–1541

    private final class AsyncTaskDecorator implements AsyncRunnable, Runnable {

        private final AsyncTask task;

        AsyncTaskDecorator(AsyncTask task) {
            this.task = task;
        }

        @Override
        public void run(final Runnable runnable) {
            if (destroyed) {
                // The engine was destroyed in the meantime, just return.
                return;
            }
            task.runAsync(() -> runAndResetNeedTask(runnable));
        }

        @Override
        public void run() {
            runAndResetNeedTask(task);
        }
    }

Frequently Asked Questions

What is the AsyncTaskDecorator class?
AsyncTaskDecorator is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java.
Where is AsyncTaskDecorator defined?
AsyncTaskDecorator is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java at line 1520.

Analyze Your Own Codebase

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

Try Supermodel Free