com.icthh.xm.commons.topic.message.MessageService Maven / Gradle / Ivy
The newest version!
package com.icthh.xm.commons.topic.message;
import com.icthh.xm.commons.lep.LogicExtensionPoint;
import com.icthh.xm.commons.lep.spring.LepService;
import com.icthh.xm.commons.logging.aop.IgnoreLogginAspect;
import com.icthh.xm.commons.topic.domain.TopicConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Slf4j
@Service
@Transactional
@IgnoreLogginAspect
@LepService(group = "topic")
public class MessageService {
@LogicExtensionPoint(value = "OnMessage", resolver = MessageTypeKeyResolver.class)
public void onMessage(String topicMessage, TopicConfig topicConfig) {
log.error("No handlers for event: {} and topic config: {} found", topicMessage, topicConfig);
}
}