记得上下班打卡 | git大法好,push需谨慎

Commit 7bcfee46 authored by zhanggb's avatar zhanggb

~queue:opt;

parent 2aa2be07
package com.liquidnet.service.consumer.kylin.receiver; //package com.liquidnet.service.consumer.kylin.receiver;
//
import com.liquidnet.commons.lang.util.CollectionUtil; //import com.liquidnet.commons.lang.util.CollectionUtil;
import com.liquidnet.commons.lang.util.HttpUtil; //import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.JsonUtils; //import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import com.liquidnet.service.goblin.dto.GoblinQueueBizIntegralDto; //import com.liquidnet.service.goblin.dto.GoblinQueueBizIntegralDto;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; //import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.connection.stream.StreamRecords; //import org.springframework.data.redis.connection.stream.StreamRecords;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
import org.springframework.util.MultiValueMap; //import org.springframework.util.MultiValueMap;
//
import java.util.HashMap; //import java.util.HashMap;
//
@Slf4j //@Slf4j
@Component //@Component
public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver { //public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver {
//
@Value("${liquidnet.service.stone.url}") // @Value("${liquidnet.service.stone.url}")
private String stoneUrl; // private String stoneUrl;
//
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_INTEGRAL.getKey(); // return MQConst.GoblinQueue.BIZ_INTEGRAL.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_INTEGRAL.getGroup(); // return MQConst.GoblinQueue.BIZ_INTEGRAL.getGroup();
} // }
//
@Override // @Override
protected boolean consumerMessageHandler(String msg) { // protected boolean consumerMessageHandler(String msg) {
boolean aBoolean = false; // boolean aBoolean = false;
try { // try {
GoblinQueueBizIntegralDto fromJsonObj = JsonUtils.fromJson(msg, GoblinQueueBizIntegralDto.class); // GoblinQueueBizIntegralDto fromJsonObj = JsonUtils.fromJson(msg, GoblinQueueBizIntegralDto.class);
if (fromJsonObj == null) { // if (fromJsonObj == null) {
log.warn("CONSUMER MSG NULL_DTO ==> [{}]:{}", this.getRedisStreamKey(), msg); // log.warn("CONSUMER MSG NULL_DTO ==> [{}]:{}", this.getRedisStreamKey(), msg);
aBoolean = true; // aBoolean = true;
} else { // } else {
aBoolean = this.bizIntegralProcessing(fromJsonObj); // aBoolean = this.bizIntegralProcessing(fromJsonObj);
} // }
} catch (Exception e) { // } catch (Exception e) {
log.error("CONSUMER MSG EX_HANDLE ==> [{}]:{}", this.getRedisStreamKey(), msg, e); // log.error("CONSUMER MSG EX_HANDLE ==> [{}]:{}", this.getRedisStreamKey(), msg, e);
} finally { // } finally {
if (!aBoolean) { // if (!aBoolean) {
HashMap<String, String> map = CollectionUtil.mapStringString(); // HashMap<String, String> map = CollectionUtil.mapStringString();
map.put(MQConst.QUEUE_MESSAGE_KEY, msg); // map.put(MQConst.QUEUE_MESSAGE_KEY, msg);
stringRedisTemplate.opsForStream().add(StreamRecords.mapBacked(map).withStreamKey(this.getRedisStreamKey())); // stringRedisTemplate.opsForStream().add(StreamRecords.mapBacked(map).withStreamKey(this.getRedisStreamKey()));
} // }
} // }
return aBoolean; // return aBoolean;
} // }
//
private boolean bizIntegralProcessing(GoblinQueueBizIntegralDto dto) { // private boolean bizIntegralProcessing(GoblinQueueBizIntegralDto dto) {
try { // try {
log.info("bizIntegralProcessing params:{}", dto); // log.info("bizIntegralProcessing params:{}", dto);
String uid = dto.getUid(), content = dto.getContent(); // String uid = dto.getUid(), content = dto.getContent();
int type = dto.getType(); // int type = dto.getType();
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString(); // MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8"); // header.add("Accept", "application/json;charset=UTF-8");
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString(); // MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("score", dto.getScore().intValue() + ""); // params.add("score", dto.getScore().intValue() + "");
params.add("content", content); // params.add("content", content);
params.add("uid", uid); // params.add("uid", uid);
String resultData = ""; // String resultData = "";
long ss = System.currentTimeMillis(); // long ss = System.currentTimeMillis();
log.info("HttpUtil s:{}", ss); // log.info("HttpUtil s:{}", ss);
if (type == 1) { // if (type == 1) {
resultData = HttpUtil.post(stoneUrl + "/user/logs/in2111", params, header); // resultData = HttpUtil.post(stoneUrl + "/user/logs/in2111", params, header);
} else { // } else {
resultData = HttpUtil.post(stoneUrl + "/user/logs/de2111", params, header); // resultData = HttpUtil.post(stoneUrl + "/user/logs/de2111", params, header);
} // }
log.info("HttpUtil e:{}", System.currentTimeMillis() - ss); // log.info("HttpUtil e:{}", System.currentTimeMillis() - ss);
log.info("bizIntegralProcessing result:{}", resultData); // log.info("bizIntegralProcessing result:{}", resultData);
return true; // return true;
} catch (Exception e) { // } catch (Exception e) {
log.error("bizIntegralProcessing e:{}", e); // log.error("bizIntegralProcessing e:{}", e);
return false; // return false;
} // }
} // }
//
/* ------------------------------------------------------------------------------------ */ // /* ------------------------------------------------------------------------------------ */
} //}
package com.liquidnet.service.consumer.kylin.receiver; //package com.liquidnet.service.consumer.kylin.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinMdbNftArtworkReceiver extends AbstractMdbRedisReceiver { //public class ConsumerGoblinMdbNftArtworkReceiver extends AbstractMdbRedisReceiver {
//
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getKey(); // return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getGroup(); // return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getGroup();
} // }
//
} //}
package com.liquidnet.service.consumer.kylin.receiver; //package com.liquidnet.service.consumer.kylin.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinMdbNftOrderReceiver extends AbstractMdbRedisReceiver { //public class ConsumerGoblinMdbNftOrderReceiver extends AbstractMdbRedisReceiver {
//
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_NFT_MONGO.getKey(); // return MQConst.GoblinQueue.BIZ_NFT_MONGO.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_NFT_MONGO.getGroup(); // return MQConst.GoblinQueue.BIZ_NFT_MONGO.getGroup();
} // }
//
} //}
package com.liquidnet.service.consumer.kylin.receiver; //package com.liquidnet.service.consumer.kylin.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinNftOrderRdsReceiver extends AbstractSqlRedisReceiver { //public class ConsumerGoblinNftOrderRdsReceiver extends AbstractSqlRedisReceiver {
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(); // return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getGroup(); // return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getGroup();
} // }
} //}
package com.liquidnet.service.consumer.kylin.receiver; //package com.liquidnet.service.consumer.kylin.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinSqlArtworkGenRdsReceiver extends AbstractSqlRedisReceiver { //public class ConsumerGoblinSqlArtworkGenRdsReceiver extends AbstractSqlRedisReceiver {
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.SQL_ARTWORK_GEN.getKey(); // return MQConst.GoblinQueue.SQL_ARTWORK_GEN.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.SQL_ARTWORK_GEN.getGroup(); // return MQConst.GoblinQueue.SQL_ARTWORK_GEN.getGroup();
} // }
} //}
package com.liquidnet.service.consumer.nft.receiver; //package com.liquidnet.service.consumer.nft.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinNftOrderRdsReceiver extends AbstractSqlRedisReceiver { //public class ConsumerGoblinNftOrderRdsReceiver extends AbstractSqlRedisReceiver {
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(); // return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getGroup(); // return MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getGroup();
} // }
} //}
...@@ -22,18 +22,18 @@ import java.util.List; ...@@ -22,18 +22,18 @@ import java.util.List;
public class ConsumerCommonBizRedisStreamConfig extends RedisStreamConfig { public class ConsumerCommonBizRedisStreamConfig extends RedisStreamConfig {
@Autowired @Autowired
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Autowired // @Autowired
ConsumerGoblinBizArtworkUplRdsReceiver consumerGoblinBizArtworkUplRdsReceiver; // ConsumerGoblinBizArtworkUplRdsReceiver consumerGoblinBizArtworkUplRdsReceiver;
@Autowired // @Autowired
ConsumerGoblinBizArtworkClqRdsReceiver consumerGoblinBizArtworkClqRdsReceiver; // ConsumerGoblinBizArtworkClqRdsReceiver consumerGoblinBizArtworkClqRdsReceiver;
// @Autowired // @Autowired
// ConsumerGoblinBizArtworkGenRdsReceiver consumerGoblinBizArtworkGenRdsReceiver; // ConsumerGoblinBizArtworkGenRdsReceiver consumerGoblinBizArtworkGenRdsReceiver;
@Autowired // @Autowired
ConsumerGoblinBizIntegralReceiver consumerGoblinBizIntegralReceiver; // ConsumerGoblinBizIntegralReceiver consumerGoblinBizIntegralReceiver;
@Autowired // @Autowired
ConsumerGoblinMdbNftOrderReceiver consumerGoblinMdbNftOrderReceiver; // ConsumerGoblinMdbNftOrderReceiver consumerGoblinMdbNftOrderReceiver;
@Autowired // @Autowired
ConsumerGoblinMdbNftArtworkReceiver consumerGoblinMdbNftArtworkReceiver; // ConsumerGoblinMdbNftArtworkReceiver consumerGoblinMdbNftArtworkReceiver;
// @Bean// 藏品上传声明 // @Bean// 藏品上传声明
// public List<Subscription> subscriptionBizArtworkUpl(RedisConnectionFactory factory) { // public List<Subscription> subscriptionBizArtworkUpl(RedisConnectionFactory factory) {
...@@ -115,19 +115,19 @@ public class ConsumerCommonBizRedisStreamConfig extends RedisStreamConfig { ...@@ -115,19 +115,19 @@ public class ConsumerCommonBizRedisStreamConfig extends RedisStreamConfig {
// return subscriptionList; // return subscriptionList;
// } // }
@Bean// NFT数字藏品 mongo操作 // @Bean// NFT数字藏品 mongo操作
public List<Subscription> subscriptionBizNftArtwork(RedisConnectionFactory factory) { // public List<Subscription> subscriptionBizNftArtwork(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); // List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.BIZ_ARTWORK_GEN; // MQConst.GoblinQueue stream = MQConst.GoblinQueue.BIZ_ARTWORK_GEN;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); // this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
for (int i = 0; i < 5; i++) { // for (int i = 0; i < 5; i++) {
StreamMessageListenerContainer<String, MapRecord<String, String, String>> listenerContainer = this.buildStreamMessageListenerContainer(factory); // StreamMessageListenerContainer<String, MapRecord<String, String, String>> listenerContainer = this.buildStreamMessageListenerContainer(factory);
subscriptionList.add(listenerContainer.receiveAutoAck( // subscriptionList.add(listenerContainer.receiveAutoAck(
Consumer.from(stream.getGroup(), getConsumerName(stream.name() + i)), // Consumer.from(stream.getGroup(), getConsumerName(stream.name() + i)),
StreamOffset.create(stream.getKey(), ReadOffset.lastConsumed()), consumerGoblinMdbNftArtworkReceiver // StreamOffset.create(stream.getKey(), ReadOffset.lastConsumed()), consumerGoblinMdbNftArtworkReceiver
)); // ));
listenerContainer.start(); // listenerContainer.start();
} // }
return subscriptionList; // return subscriptionList;
} // }
} }
package com.liquidnet.service.consumer.slowly.receiver; //package com.liquidnet.service.consumer.slowly.receiver;
//
import com.liquidnet.commons.lang.util.CollectionUtil; //import com.liquidnet.commons.lang.util.CollectionUtil;
import com.liquidnet.commons.lang.util.HttpUtil; //import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.JsonUtils; //import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import com.liquidnet.service.goblin.dto.GoblinQueueBizIntegralDto; //import com.liquidnet.service.goblin.dto.GoblinQueueBizIntegralDto;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; //import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.connection.stream.StreamRecords; //import org.springframework.data.redis.connection.stream.StreamRecords;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
import org.springframework.util.MultiValueMap; //import org.springframework.util.MultiValueMap;
//
import java.util.HashMap; //import java.util.HashMap;
//
@Slf4j //@Slf4j
@Component //@Component
public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver { //public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver {
//
@Value("${liquidnet.service.stone.url}") // @Value("${liquidnet.service.stone.url}")
private String stoneUrl; // private String stoneUrl;
//
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_INTEGRAL.getKey(); // return MQConst.GoblinQueue.BIZ_INTEGRAL.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_INTEGRAL.getGroup(); // return MQConst.GoblinQueue.BIZ_INTEGRAL.getGroup();
} // }
//
@Override // @Override
protected boolean consumerMessageHandler(String msg) { // protected boolean consumerMessageHandler(String msg) {
boolean aBoolean = false; // boolean aBoolean = false;
try { // try {
GoblinQueueBizIntegralDto fromJsonObj = JsonUtils.fromJson(msg, GoblinQueueBizIntegralDto.class); // GoblinQueueBizIntegralDto fromJsonObj = JsonUtils.fromJson(msg, GoblinQueueBizIntegralDto.class);
if (fromJsonObj == null) { // if (fromJsonObj == null) {
log.warn("CONSUMER MSG NULL_DTO ==> [{}]:{}", this.getRedisStreamKey(), msg); // log.warn("CONSUMER MSG NULL_DTO ==> [{}]:{}", this.getRedisStreamKey(), msg);
aBoolean = true; // aBoolean = true;
} else { // } else {
aBoolean = this.bizIntegralProcessing(fromJsonObj); // aBoolean = this.bizIntegralProcessing(fromJsonObj);
} // }
} catch (Exception e) { // } catch (Exception e) {
log.error("CONSUMER MSG EX_HANDLE ==> [{}]:{}", this.getRedisStreamKey(), msg, e); // log.error("CONSUMER MSG EX_HANDLE ==> [{}]:{}", this.getRedisStreamKey(), msg, e);
} finally { // } finally {
if (!aBoolean) { // if (!aBoolean) {
HashMap<String, String> map = CollectionUtil.mapStringString(); // HashMap<String, String> map = CollectionUtil.mapStringString();
map.put(MQConst.QUEUE_MESSAGE_KEY, msg); // map.put(MQConst.QUEUE_MESSAGE_KEY, msg);
stringRedisTemplate.opsForStream().add(StreamRecords.mapBacked(map).withStreamKey(this.getRedisStreamKey())); // stringRedisTemplate.opsForStream().add(StreamRecords.mapBacked(map).withStreamKey(this.getRedisStreamKey()));
} // }
} // }
return aBoolean; // return aBoolean;
} // }
//
private boolean bizIntegralProcessing(GoblinQueueBizIntegralDto dto) { // private boolean bizIntegralProcessing(GoblinQueueBizIntegralDto dto) {
try { // try {
log.info("bizIntegralProcessing params:{}", dto); // log.info("bizIntegralProcessing params:{}", dto);
String uid = dto.getUid(), content = dto.getContent(); // String uid = dto.getUid(), content = dto.getContent();
int type = dto.getType(); // int type = dto.getType();
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString(); // MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8"); // header.add("Accept", "application/json;charset=UTF-8");
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString(); // MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("score", dto.getScore().intValue() + ""); // params.add("score", dto.getScore().intValue() + "");
params.add("content", content); // params.add("content", content);
params.add("uid", uid); // params.add("uid", uid);
String resultData = ""; // String resultData = "";
long ss = System.currentTimeMillis(); // long ss = System.currentTimeMillis();
log.info("HttpUtil s:{}", ss); // log.info("HttpUtil s:{}", ss);
if (type == 1) { // if (type == 1) {
resultData = HttpUtil.post(stoneUrl + "/user/logs/in2111", params, header); // resultData = HttpUtil.post(stoneUrl + "/user/logs/in2111", params, header);
} else { // } else {
resultData = HttpUtil.post(stoneUrl + "/user/logs/de2111", params, header); // resultData = HttpUtil.post(stoneUrl + "/user/logs/de2111", params, header);
} // }
log.info("HttpUtil e:{}", System.currentTimeMillis() - ss); // log.info("HttpUtil e:{}", System.currentTimeMillis() - ss);
log.info("bizIntegralProcessing result:{}", resultData); // log.info("bizIntegralProcessing result:{}", resultData);
return true; // return true;
} catch (Exception e) { // } catch (Exception e) {
log.error("bizIntegralProcessing e:{}", e); // log.error("bizIntegralProcessing e:{}", e);
return false; // return false;
} // }
} // }
//
/* ------------------------------------------------------------------------------------ */ // /* ------------------------------------------------------------------------------------ */
} //}
package com.liquidnet.service.consumer.slowly.receiver; //package com.liquidnet.service.consumer.slowly.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinMdbNftArtworkReceiver extends AbstractMdbRedisReceiver { //public class ConsumerGoblinMdbNftArtworkReceiver extends AbstractMdbRedisReceiver {
//
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getKey(); // return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getGroup(); // return MQConst.GoblinQueue.BIZ_ARTWORK_GEN.getGroup();
} // }
//
} //}
package com.liquidnet.service.consumer.slowly.receiver; //package com.liquidnet.service.consumer.slowly.receiver;
//
import com.liquidnet.service.base.constant.MQConst; //import com.liquidnet.service.base.constant.MQConst;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
@Component //@Component
public class ConsumerGoblinMdbNftOrderReceiver extends AbstractMdbRedisReceiver { //public class ConsumerGoblinMdbNftOrderReceiver extends AbstractMdbRedisReceiver {
//
@Override // @Override
protected String getRedisStreamKey() { // protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_NFT_MONGO.getKey(); // return MQConst.GoblinQueue.BIZ_NFT_MONGO.getKey();
} // }
//
@Override // @Override
protected String getRedisStreamGroup() { // protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_NFT_MONGO.getGroup(); // return MQConst.GoblinQueue.BIZ_NFT_MONGO.getGroup();
} // }
//
} //}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment