Class KafkaProducerTest.MonitorableInterceptor
java.lang.Object
org.apache.kafka.test.MockProducerInterceptor
org.apache.kafka.clients.producer.KafkaProducerTest.MonitorableInterceptor
- All Implemented Interfaces:
AutoCloseable, org.apache.kafka.clients.producer.ProducerInterceptor<String,String>, org.apache.kafka.common.ClusterResourceListener, org.apache.kafka.common.Configurable, org.apache.kafka.common.metrics.Monitorable
- Enclosing class:
KafkaProducerTest
public static class KafkaProducerTest.MonitorableInterceptor
extends MockProducerInterceptor
implements org.apache.kafka.common.metrics.Monitorable
-
Field Summary
Fields inherited from class MockProducerInterceptor
APPEND_STRING_PROP, CLOSE_COUNT, CLUSTER_ID_BEFORE_ON_ACKNOWLEDGEMENT, CLUSTER_META, CONFIG_COUNT, INIT_COUNT, NO_CLUSTER_ID, ON_ACKNOWLEDGEMENT_COUNT, ON_ERROR_COUNT, ON_ERROR_WITH_METADATA_COUNT, ON_SUCCESS_COUNT, ONSEND_COUNT, THROW_CONFIG_EXCEPTION, THROW_ON_CONFIG_EXCEPTION_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwithPluginMetrics(org.apache.kafka.common.metrics.PluginMetrics metrics) Methods inherited from class MockProducerInterceptor
close, configure, onAcknowledgement, onSend, onUpdate, resetCounters, setThrowOnConfigExceptionThresholdMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.clients.producer.ProducerInterceptor
onAcknowledgement
-
Constructor Details
-
MonitorableInterceptor
public MonitorableInterceptor()
-
-
Method Details
-
withPluginMetrics
public void withPluginMetrics(org.apache.kafka.common.metrics.PluginMetrics metrics) - Specified by:
withPluginMetricsin interfaceorg.apache.kafka.common.metrics.Monitorable
-