All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jeesuite.kafka.serializer.KyroMessageDeserializer Maven / Gradle / Ivy

package com.jeesuite.kafka.serializer;

import java.util.Map;

import org.apache.kafka.common.serialization.Deserializer;

import com.jeesuite.common.serializer.SerializeUtils;

/**
 * 
 * @description 
* @author vakin * @date 2016年6月14日 */ public class KyroMessageDeserializer implements Deserializer { @Override public void configure(Map configs, boolean isKey) {} @Override public Object deserialize(String topic, byte[] data) { if (data == null) return null; else return SerializeUtils.deserialize(data); } @Override public void close() { // nothing to do } }