Class NettyGlobalConfiguration
java.lang.Object
io.micronaut.http.netty.configuration.NettyGlobalConfiguration
Allows configuring Netty global properties.
- Since:
- 2.5.0
- Author:
- Denis Stepannov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Default value: false.io.netty.util.ResourceLeakDetector.Level
Provides the value set for the resource leak detection.boolean
Default value: false.boolean
Default value: true.void
setDefaultThreadFactoryDaemon
(boolean defaultThreadFactoryDaemon) Default value: false.void
setDefaultThreadFactoryPriority
(int defaultThreadFactoryPriority) Default value: false.void
setDefaultThreadFactoryReactorNonBlocking
(boolean defaultThreadFactoryReactorNonBlocking) Default value: true.void
setResourceLeakDetectorLevel
(io.netty.util.ResourceLeakDetector.Level resourceLeakDetectorLevel) Sets the resource leak detection level.
-
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
Provides the value set for the resource leak detection.- Returns:
- the resource leak detection level
-
isDefaultThreadFactoryReactorNonBlocking
public boolean isDefaultThreadFactoryReactorNonBlocking()Default value: true. Iftrue
, netty event loop threads will implement project reactorNonBlocking
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. Iftrue
, netty event loop threads will implement project reactorNonBlocking
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
-
isDefaultThreadFactoryDaemon
public boolean isDefaultThreadFactoryDaemon()Default value: false.- Returns:
- defaultThreadFactoryDaemon are created threads will be a daemon or not
-
setDefaultThreadFactoryDaemon
public void setDefaultThreadFactoryDaemon(boolean defaultThreadFactoryDaemon) Default value: false.- Parameters:
defaultThreadFactoryDaemon
- are created threads will be a daemon or not
-
getDefaultThreadFactoryPriority
public int getDefaultThreadFactoryPriority()Default value: false.- Returns:
- defaultThreadFactoryPriority created threads priority
-
setDefaultThreadFactoryPriority
public void setDefaultThreadFactoryPriority(int defaultThreadFactoryPriority) Default value: false. Minimum value: , maximum value:- Parameters:
defaultThreadFactoryPriority
- created threads priority
-