public class UUIDSerializer extends Object implements Serializer<UUID>
Constructor and Description |
---|
UUIDSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map<String,?> configs,
boolean isKey)
Configure this class.
|
byte[] |
serialize(String topic,
UUID data)
Convert
data into a byte array. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, serialize
public void configure(Map<String,?> configs, boolean isKey)
Serializer
configure
in interface Serializer<UUID>
configs
- configs in key/value pairsisKey
- whether is for key or valuepublic byte[] serialize(String topic, UUID data)
Serializer
data
into a byte array.serialize
in interface Serializer<UUID>
topic
- topic associated with datadata
- typed data