Package org.infinispan.metrics.config
Class MicrometerMeterRegisterConfigurationBuilder
java.lang.Object
org.infinispan.metrics.config.MicrometerMeterRegisterConfigurationBuilder
- All Implemented Interfaces:
Builder<MicrometerMeterRegistryConfiguration>
public class MicrometerMeterRegisterConfigurationBuilder
extends Object
implements Builder<MicrometerMeterRegistryConfiguration>
Builder to inject an instance of
MeterRegistry
.
If not configured, Infinispan will create a new instance of PrometheusMeterRegistry
.
- Since:
- 15.0
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create the configuration beanboolean
int
hashCode()
meterRegistry
(io.micrometer.core.instrument.MeterRegistry registry) Set theMeterRegistry
instance to use by Infinispan.read
(MicrometerMeterRegistryConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.toString()
-
Constructor Details
-
MicrometerMeterRegisterConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<MicrometerMeterRegistryConfiguration>
-
meterRegistry
public MicrometerMeterRegisterConfigurationBuilder meterRegistry(io.micrometer.core.instrument.MeterRegistry registry) Set theMeterRegistry
instance to use by Infinispan.If set to
null
, Infinispan will create a new instance ofPrometheusMeterRegistry
.- Parameters:
registry
- TheMeterRegistry
to use ornull
.
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<MicrometerMeterRegistryConfiguration>
- Returns:
-
read
public MicrometerMeterRegisterConfigurationBuilder read(MicrometerMeterRegistryConfiguration template, Combine combine) Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<MicrometerMeterRegistryConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
equals
-
hashCode
public int hashCode() -
toString
-