Class ByteBufAllocatorMetricsConfig
java.lang.Object
io.micronaut.configuration.metrics.binder.netty.ByteBufAllocatorMetricsConfig
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("micronaut.metrics.binders.netty.bytebuf-allocators")
public final class ByteBufAllocatorMetricsConfig
extends Object
implements io.micronaut.core.util.Toggleable
Configuration for Netty ByteBuf allocator metrics.
- Since:
- 6.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNetty ByteBuf allocator metrics that can be exposed. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PATH
-
PROPERTY_ENABLED
-
-
Constructor Details
-
ByteBufAllocatorMetricsConfig
public ByteBufAllocatorMetricsConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled- Whether Netty ByteBuf allocator metrics are enabled
-
getMetrics
- Returns:
- The configured metric kinds
-
setMetrics
- Parameters:
metrics- The configured metric kinds
-