Class NettyGlobalConfiguration

java.lang.Object
io.micronaut.http.netty.configuration.NettyGlobalConfiguration

@ConfigurationProperties("netty") public class NettyGlobalConfiguration extends Object
Allows configuring Netty global properties.
Since:
2.5.0
Author:
Denis Stepannov
  • Constructor Details

    • NettyGlobalConfiguration

      public NettyGlobalConfiguration()
  • Method Details

    • setResourceLeakDetectorLevel

      public void setResourceLeakDetectorLevel(io.netty.util.ResourceLeakDetector.Level resourceLeakDetectorLevel)
      Sets the resource leak detection level.
      Parameters:
      resourceLeakDetectorLevel - the resource leak detection level
    • getResourceLeakDetectorLevel

      @Nullable public io.netty.util.ResourceLeakDetector.Level getResourceLeakDetectorLevel()
      Provides the value set for the resource leak detection.
      Returns:
      the resource leak detection level
    • isDefaultThreadFactoryReactorNonBlocking

      public boolean isDefaultThreadFactoryReactorNonBlocking()
      Default value: true If true, netty event loop threads will implement project reactor NonBlocking by default. Because of that, any Project Reactor's blocking operations throw an exception on those threads.
      Returns:
      Whether event loop threads should implement NonBlocking by default
    • setDefaultThreadFactoryReactorNonBlocking

      public void setDefaultThreadFactoryReactorNonBlocking(boolean defaultThreadFactoryReactorNonBlocking)
      Default value: true If true, netty event loop threads will implement project reactor NonBlocking by default. Because of that, any Project Reactor's blocking operations throw an exception on those threads.
      Parameters:
      defaultThreadFactoryReactorNonBlocking - Whether event loop threads should implement NonBlocking by default