Home / Class/ RejectingEventExecutor Class — netty Architecture

RejectingEventExecutor Class — netty Architecture

Architecture documentation for the RejectingEventExecutor class in DefaultPromiseTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  81d07548_dddc_778a_e8ce_7f196ee57341["RejectingEventExecutor"]
  c8ee1ee4_0bc9_1fc7_8106_4f4ee23722a5["DefaultPromiseTest.java"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|defined in| c8ee1ee4_0bc9_1fc7_8106_4f4ee23722a5
  603b5e93_b531_9a30_c782_970b6e490160["isShuttingDown()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 603b5e93_b531_9a30_c782_970b6e490160
  817c8cdd_038c_e049_c910_fd52454e0e8d["shutdownGracefully()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 817c8cdd_038c_e049_c910_fd52454e0e8d
  adb9ad00_4a46_1cd5_e8d5_4e5448d13d2d["terminationFuture()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| adb9ad00_4a46_1cd5_e8d5_4e5448d13d2d
  59607e85_dd53_b027_c3ee_d37d5c9377b6["shutdown()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 59607e85_dd53_b027_c3ee_d37d5c9377b6
  6f4bacc9_99e1_1543_8723_a5051964d9d8["isShutdown()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 6f4bacc9_99e1_1543_8723_a5051964d9d8
  485c3a8e_2787_05c3_b240_88278a48e4fb["isTerminated()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 485c3a8e_2787_05c3_b240_88278a48e4fb
  4eb29897_4621_8c78_aa93_57baef756fdc["awaitTermination()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 4eb29897_4621_8c78_aa93_57baef756fdc
  d67ddf51_3ed6_7237_9220_fd0854c55a2f["schedule()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| d67ddf51_3ed6_7237_9220_fd0854c55a2f
  a274ccb8_2e59_0701_9ebe_db03b3013231["scheduleAtFixedRate()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| a274ccb8_2e59_0701_9ebe_db03b3013231
  9c75f7f2_d409_f5d2_0698_88e20ce59918["scheduleWithFixedDelay()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 9c75f7f2_d409_f5d2_0698_88e20ce59918
  a45267a6_0e97_68f1_6301_9fb16ed141ff["inEventLoop()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| a45267a6_0e97_68f1_6301_9fb16ed141ff
  8a5571f5_2006_3c17_8a8a_593a884241a7["execute()"]
  81d07548_dddc_778a_e8ce_7f196ee57341 -->|method| 8a5571f5_2006_3c17_8a8a_593a884241a7

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java lines 73–138

    private static class RejectingEventExecutor extends AbstractEventExecutor {
        @Override
        public boolean isShuttingDown() {
            return false;
        }

        @Override
        public Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) {
            return null;
        }

        @Override
        public Future<?> terminationFuture() {
            return null;
        }

        @Override
        public void shutdown() {
        }

        @Override
        public boolean isShutdown() {
            return false;
        }

        @Override
        public boolean isTerminated() {
            return false;
        }

        @Override
        public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
            return false;
        }

        @Override
        public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
            return fail("Cannot schedule commands");
        }

        @Override
        public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
            return fail("Cannot schedule commands");
        }

        @Override
        public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
            return fail("Cannot schedule commands");
        }

        @Override
        public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay,
                                                         TimeUnit unit) {
            return fail("Cannot schedule commands");
        }

        @Override
        public boolean inEventLoop(Thread thread) {
            return false;
        }

        @Override
        public void execute(Runnable command) {
            fail("Cannot schedule commands");
        }
    }

Frequently Asked Questions

What is the RejectingEventExecutor class?
RejectingEventExecutor is a class in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java.
Where is RejectingEventExecutor defined?
RejectingEventExecutor is defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java at line 73.

Analyze Your Own Codebase

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

Try Supermodel Free