@Experimental(value=SOURCE_SINK) public class InstantDeserializer extends java.lang.Object implements 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserialize
public void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
configure
in interface Deserializer<Instant>
public Instant deserialize(java.lang.String topic, byte[] bytes)
deserialize
in interface Deserializer<Instant>
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface Deserializer<Instant>