You probably can do that implementing (via extension) a DefaultKafkaConsumerFactory
. In the overridden createConsumer()
method you wrap the super
result into the mentioned AOP proxy and intercept via your MethodInterceptor
the poll(Duration)
call.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…