Package ai.superstream.agent
Class KafkaProducerInterceptor
java.lang.Object
ai.superstream.agent.KafkaProducerInterceptor
Intercepts KafkaProducer constructor calls to optimize configurations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesextractProperties(Object[] args) Extract Properties object from constructor arguments.static booleanDetermines if this constructor call is the initial creation from application code rather than an internal delegation between constructors.static voidCalled before the KafkaProducer constructor.
-
Field Details
-
logger
-
-
Constructor Details
-
KafkaProducerInterceptor
public KafkaProducerInterceptor()
-
-
Method Details
-
onEnter
Called before the KafkaProducer constructor.- Parameters:
args- The producer properties
-
extractProperties
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.
-