public class InstantDeserializer extends java.lang.Object implements org.apache.kafka.common.serialization.Deserializer<Instant>
Deserializer
for Instant
.
This decodes the number of milliseconds since epoch using LongDeserializer
.
Constructor and Description |
---|
InstantDeserializer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(java.util.Map<java.lang.String,?> configs,
boolean isKey) |
Instant |
deserialize(java.lang.String topic,
byte[] bytes) |
public void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
configure
in interface org.apache.kafka.common.serialization.Deserializer<Instant>
public Instant deserialize(java.lang.String topic, byte[] bytes)
deserialize
in interface org.apache.kafka.common.serialization.Deserializer<Instant>
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.kafka.common.serialization.Deserializer<Instant>