mirror of https://github.com/apache/kafka.git
Remove the default implementation Reviewers: Lucas Brutschy <lucasbru@apache.org>
This commit is contained in:
parent
96c8e86cdf
commit
81bdf0b889
|
@ -40,7 +40,6 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.time.Duration;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
|
@ -64,11 +63,6 @@ public class PageViewUntypedDemo {
|
|||
public static class JsonNodeSerializer implements Serializer<JsonNode> {
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
@Override
|
||||
public void configure(final Map<String, ?> configs, final boolean isKey) {
|
||||
// No configuration needed
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize(final String topic, final JsonNode data) {
|
||||
if (data == null) {
|
||||
|
@ -80,11 +74,6 @@ public class PageViewUntypedDemo {
|
|||
throw new SerializationException("Error serializing JSON message", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
// No resources to close
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -93,11 +82,6 @@ public class PageViewUntypedDemo {
|
|||
public static class JsonNodeDeserializer implements Deserializer<JsonNode> {
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
@Override
|
||||
public void configure(final Map<String, ?> configs, final boolean isKey) {
|
||||
// No configuration needed
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonNode deserialize(final String topic, final byte[] data) {
|
||||
if (data == null) {
|
||||
|
@ -109,11 +93,6 @@ public class PageViewUntypedDemo {
|
|||
throw new SerializationException("Error deserializing JSON message", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
// No resources to close
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(final String[] args) throws Exception {
|
||||
|
|
Loading…
Reference in New Issue