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