public final class GenericSerde<A,S> extends Object implements org.apache.kafka.common.serialization.Serde<A>
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Map<String,?> configs,
boolean isKey) |
org.apache.kafka.common.serialization.Deserializer<A> |
deserializer() |
static <A,S> org.apache.kafka.common.serialization.Serde<A> |
of(org.apache.kafka.common.serialization.Serde<S> serde,
java.util.function.Function<A,S> toGenericFn,
java.util.function.Function<S,A> fromGenericFn) |
static <A,S> org.apache.kafka.common.serialization.Serde<A> |
of(org.apache.kafka.common.serialization.Serde<S> serde,
GenericMapper<A,S> mapper) |
org.apache.kafka.common.serialization.Serializer<A> |
serializer() |
public static <A,S> org.apache.kafka.common.serialization.Serde<A> of(org.apache.kafka.common.serialization.Serde<S> serde, GenericMapper<A,S> mapper)
public static <A,S> org.apache.kafka.common.serialization.Serde<A> of(org.apache.kafka.common.serialization.Serde<S> serde, java.util.function.Function<A,S> toGenericFn, java.util.function.Function<S,A> fromGenericFn)
public void configure(Map<String,?> configs, boolean isKey)
configure
in interface org.apache.kafka.common.serialization.Serde<A>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.kafka.common.serialization.Serde<A>
public org.apache.kafka.common.serialization.Serializer<A> serializer()
serializer
in interface org.apache.kafka.common.serialization.Serde<A>
Copyright © 2019. All rights reserved.