@Singleton @Requires(beans=io.micrometer.core.instrument.MeterRegistry.class) public class MetricsClientResourceMutator extends java.lang.Object implements ClientResourcesMutator
ClientResources.Builder
adding MicrometerCommandLatencyRecorder
.Constructor and Description |
---|
MetricsClientResourceMutator(io.micrometer.core.instrument.MeterRegistry meterRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
mutate(io.lettuce.core.resource.ClientResources.Builder builder,
AbstractRedisConfiguration config)
Mutates a
ClientResources.Builder . |
public MetricsClientResourceMutator(io.micrometer.core.instrument.MeterRegistry meterRegistry)
public void mutate(io.lettuce.core.resource.ClientResources.Builder builder, AbstractRedisConfiguration config)
ClientResourcesMutator
ClientResources.Builder
.mutate
in interface ClientResourcesMutator
builder
- the builderconfig
- the redis config