Class KafkaProducerInterceptor

java.lang.Object
ai.superstream.agent.KafkaProducerInterceptor

public class KafkaProducerInterceptor extends Object
Intercepts KafkaProducer constructor calls to optimize configurations.
  • Field Details

  • Constructor Details

    • KafkaProducerInterceptor

      public KafkaProducerInterceptor()
  • Method Details

    • onEnter

      @OnMethodEnter public static void onEnter(@AllArguments Object[] args)
      Called before the KafkaProducer constructor.
      Parameters:
      args - The producer properties
    • extractProperties

      public static Properties extractProperties(Object[] args)
      Extract Properties object from constructor arguments.
    • isInitialProducerCreation

      public static boolean isInitialProducerCreation()
      Determines if this constructor call is the initial creation from application code rather than an internal delegation between constructors.