Class KafkaProducerTest.MonitorableSerializer
java.lang.Object
org.apache.kafka.test.MockSerializer
org.apache.kafka.clients.producer.KafkaProducerTest.MonitorableSerializer
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.ClusterResourceListener, org.apache.kafka.common.metrics.Monitorable, org.apache.kafka.common.serialization.Serializer<String>
- Enclosing class:
KafkaProducerTest
public static class KafkaProducerTest.MonitorableSerializer
extends MockSerializer
implements org.apache.kafka.common.metrics.Monitorable
-
Field Summary
Fields inherited from class MockSerializer
CLOSE_COUNT, CLUSTER_ID_BEFORE_SERIALIZE, CLUSTER_META, INIT_COUNT, NO_CLUSTER_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwithPluginMetrics(org.apache.kafka.common.metrics.PluginMetrics metrics) Methods inherited from class MockSerializer
close, onUpdate, serializeMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.serialization.Serializer
configure, serialize
-
Constructor Details
-
MonitorableSerializer
public MonitorableSerializer()
-
-
Method Details
-
withPluginMetrics
public void withPluginMetrics(org.apache.kafka.common.metrics.PluginMetrics metrics) - Specified by:
withPluginMetricsin interfaceorg.apache.kafka.common.metrics.Monitorable
-