java.lang.Object
io.micronaut.configuration.metrics.micrometer.intercept.CountedInterceptor
All Implemented Interfaces:
io.micronaut.aop.Interceptor<Object,Object>, io.micronaut.aop.MethodInterceptor<Object,Object>, io.micronaut.core.order.Ordered

@RequiresMetrics @InterceptorBean(io.micrometer.core.annotation.Counted.class) public class CountedInterceptor extends Object implements io.micronaut.aop.MethodInterceptor<Object,Object>
Implements support for Counted as AOP advice.
Since:
1.1.0
Author:
graemerocher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from interface io.micronaut.aop.Interceptor

    ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CountedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry)
    Deprecated.
    Pass conversion service in new constructor
    CountedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micronaut.core.convert.ConversionService conversionService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(io.micronaut.aop.MethodInvocationContext<Object,Object> context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.aop.MethodInterceptor

    intercept

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Field Details

  • Constructor Details

    • CountedInterceptor

      @Deprecated public CountedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry)
      Deprecated.
      Pass conversion service in new constructor
      Parameters:
      meterRegistry - The meter registry
    • CountedInterceptor

      @Inject public CountedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micronaut.core.convert.ConversionService conversionService)
      Parameters:
      meterRegistry - The meter registry
      conversionService - The conversion service
  • Method Details

    • intercept

      public Object intercept(io.micronaut.aop.MethodInvocationContext<Object,Object> context)
      Specified by:
      intercept in interface io.micronaut.aop.MethodInterceptor<Object,Object>