Package ratpack.dropwizard.metrics
Class ByteBufAllocatorConfig
- java.lang.Object
-
- ratpack.dropwizard.metrics.ByteBufAllocatorConfig
-
public class ByteBufAllocatorConfig extends Object
Configuration for collecting metrics aboutByteBufAllocator
.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description ByteBufAllocatorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufAllocatorConfig
detail(boolean detailed)
Set the state of detailed metric collectrion for theByteBufAllocator
metric collector.ByteBufAllocatorConfig
enable(boolean enabled)
Set the state of theByteBufAllocator
metric collector.boolean
isDetailed()
The state of detailed metric collection for theByteBufAllocator
metric collector.boolean
isEnabled()
The state of the ByteBufAllocator metric collector.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
The state of the ByteBufAllocator metric collector.- Returns:
- the state of the
ByteBufAllocator
metric collector.
-
enable
public ByteBufAllocatorConfig enable(boolean enabled)
Set the state of theByteBufAllocator
metric collector.- Parameters:
enabled
- True ifByteBufAllocator
metrics should be collected. False otherwise- Returns:
this
-
isDetailed
public boolean isDetailed()
The state of detailed metric collection for theByteBufAllocator
metric collector.- Returns:
- The state of detailed metric collection for the
ByteBufAllocator
metric collector.
-
detail
public ByteBufAllocatorConfig detail(boolean detailed)
Set the state of detailed metric collectrion for theByteBufAllocator
metric collector.- Parameters:
detailed
- The state of detailed metric collection for theByteBufAllocator
metric collector.- Returns:
this
-
-