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 ByteBufAllocatorConfigdetail(boolean detailed)Set the state of detailed metric collectrion for theByteBufAllocatormetric collector.ByteBufAllocatorConfigenable(boolean enabled)Set the state of theByteBufAllocatormetric collector.booleanisDetailed()The state of detailed metric collection for theByteBufAllocatormetric collector.booleanisEnabled()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
ByteBufAllocatormetric collector.
-
enable
public ByteBufAllocatorConfig enable(boolean enabled)
Set the state of theByteBufAllocatormetric collector.- Parameters:
enabled- True ifByteBufAllocatormetrics should be collected. False otherwise- Returns:
this
-
isDetailed
public boolean isDetailed()
The state of detailed metric collection for theByteBufAllocatormetric collector.- Returns:
- The state of detailed metric collection for the
ByteBufAllocatormetric collector.
-
detail
public ByteBufAllocatorConfig detail(boolean detailed)
Set the state of detailed metric collectrion for theByteBufAllocatormetric collector.- Parameters:
detailed- The state of detailed metric collection for theByteBufAllocatormetric collector.- Returns:
this
-
-