public class InstantSerializer
extends java.lang.Object
Serializer
for Instant
.
This encodes the number of milliseconds since epoch using LongSerializer
.
Constructor and Description |
---|
InstantSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(java.util.Map<java.lang.String,?> configs,
boolean isKey) |
byte[] |
serialize(java.lang.String topic,
Instant instant) |
public void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
public byte[] serialize(java.lang.String topic, Instant instant)
public void close()