package com.hfkj.msg;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service(value = "driverLBSMsgListener")
public class OilPriceTaskMsgListener implements MessageListener {

    private static Logger logger = LoggerFactory.getLogger(OilPriceTaskMsgListener.class);
    private RedisTemplate<String, Object> redisTemplate;

    @Override
    public void onMessage(Message message, byte[] pattern) {
        System.out.println(message);
    }
}
