Class MetricsClientResourceMutator
java.lang.Object
io.micronaut.configuration.lettuce.MetricsClientResourceMutator
- All Implemented Interfaces:
ClientResourcesMutator
@Singleton
@Requires(beans=io.micrometer.core.instrument.MeterRegistry.class)
public class MetricsClientResourceMutator
extends Object
implements ClientResourcesMutator
Mutates a
ClientResources.Builder
adding MicrometerCommandLatencyRecorder
.- Since:
- 4.1
- Author:
- Rafael Acevedo
-
Constructor Summary
ConstructorDescriptionMetricsClientResourceMutator
(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
mutate
(io.lettuce.core.resource.ClientResources.Builder builder, AbstractRedisConfiguration config) Mutates aClientResources.Builder
.
-
Constructor Details
-
MetricsClientResourceMutator
public MetricsClientResourceMutator(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
mutate
public void mutate(io.lettuce.core.resource.ClientResources.Builder builder, AbstractRedisConfiguration config) Description copied from interface:ClientResourcesMutator
Mutates aClientResources.Builder
.- Specified by:
mutate
in interfaceClientResourcesMutator
- Parameters:
builder
- the builderconfig
- the redis config
-