io.github.dengchen2020.core.redis.annotation.RedisMessageListener Maven / Gradle / Ivy
package io.github.dengchen2020.core.redis.annotation;
import org.springframework.data.redis.listener.ChannelTopic;
import java.lang.annotation.*;
/**
* redis消息订阅监听注册
* @author dengchen
* @since 2024/8/3
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RedisMessageListener {
/**
* 主题名称
*/
String value();
/**
* redis订阅通道类型,默认{@link ChannelTopic}
*/
TopicType type() default TopicType.channel;
}