You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
485 B
21 lines
485 B
package com.bx.imclient.task;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.bx.imcommon.mq.RedisMQConsumer;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
@Slf4j
|
|
public abstract class AbstractMessageResultTask<T> extends RedisMQConsumer<T> {
|
|
|
|
@Value("${spring.application.name}")
|
|
private String appName;
|
|
|
|
@Override
|
|
public String generateKey() {
|
|
return StrUtil.join(":", super.generateKey(), appName);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|