T - Type to be serialized from.
A class that implements this interface is expected to have a constructor with no parameter.
Implement ClusterResourceListener to receive cluster metadata once it's available. Please see the class documentation for ClusterResourceListener for more information.
public interface Serializer<T> extends Closeable
void configure(Map<String,?> configs, boolean isKey)
configs - configs in key/value pairsisKey - whether is for key or valuebyte[] serialize(String topic, T data)
topic - topic associated with datadata - typed datavoid close()
close in interface AutoCloseableclose in interface Closeable