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

Commit d28f0d49 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'hjc_init_consumer' into dev_rc_xuper_op

parents 80bf2234 2ef4d2d8
...@@ -27,7 +27,7 @@ public class ConsumerGoblinOrderAGRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerGoblinOrderAGRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlGOrderAgain(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_ORDER_AGAIN; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_ORDER_AGAIN;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinOrderCPRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerGoblinOrderCPRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlGCP(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_ORDER_CREATE_PAY; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_ORDER_CREATE_PAY;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlOptOrderCloseRedisStreamConfig extends RedisStreamC ...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlOptOrderCloseRedisStreamConfig extends RedisStreamC
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlOC(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = MQConst.KylinQueue.SQL_ORDER_CLOSE; MQConst.KylinQueue stream = MQConst.KylinQueue.SQL_ORDER_CLOSE;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -30,7 +30,7 @@ public class ConsumerKylinSqlOrderPayRedisStreamConfig extends RedisStreamConfig ...@@ -30,7 +30,7 @@ public class ConsumerKylinSqlOrderPayRedisStreamConfig extends RedisStreamConfig
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlOP(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = MQConst.KylinQueue.SQL_ORDER_PAY; MQConst.KylinQueue stream = MQConst.KylinQueue.SQL_ORDER_PAY;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -30,7 +30,7 @@ public class ConsumerKylinSqlOrderRefundRedisStreamConfig extends RedisStreamCon ...@@ -30,7 +30,7 @@ public class ConsumerKylinSqlOrderRefundRedisStreamConfig extends RedisStreamCon
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlOR(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = MQConst.KylinQueue.SQL_ORDER_REFUND; MQConst.KylinQueue stream = MQConst.KylinQueue.SQL_ORDER_REFUND;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinSelfMarketRedisStreamConfig extends RedisStreamConfig ...@@ -27,7 +27,7 @@ public class ConsumerGoblinSelfMarketRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSelfMarket(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_SELF_MARKET; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_SELF_MARKET;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinShopCartStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerGoblinShopCartStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlShopCar(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_SHOP_CART; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_SHOP_CART;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinStoneMarketRedisStreamConfig extends RedisStreamConfi ...@@ -27,7 +27,7 @@ public class ConsumerGoblinStoneMarketRedisStreamConfig extends RedisStreamConfi
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlStoneMarket(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_STORE_MARKET; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_STORE_MARKET;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinStoreOrderRedisStreamConfig extends RedisStreamConfig ...@@ -27,7 +27,7 @@ public class ConsumerGoblinStoreOrderRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlStoreOrder(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_STORE_ORDER_OPERA; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_STORE_ORDER_OPERA;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinUserOrderRedisStreamConfig extends RedisStreamConfig ...@@ -27,7 +27,7 @@ public class ConsumerGoblinUserOrderRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlUserOrder(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_USER_ORDER_OPERA; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_USER_ORDER_OPERA;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerGoblinXlsRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerGoblinXlsRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlXls(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_XLS_OPERA; MQConst.GoblinQueue stream = MQConst.GoblinQueue.GOBLIN_XLS_OPERA;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinOptTransferOverTimeRedisStreamConfig extends RedisStre ...@@ -29,7 +29,7 @@ public class ConsumerKylinOptTransferOverTimeRedisStreamConfig extends RedisStre
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlOverTime(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_TRANSFER_OVERTIME; MQConst.KylinQueue stream = SQL_TRANSFER_OVERTIME;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinOrderRefundExpressRedisStreamConfig extends RedisStrea ...@@ -29,7 +29,7 @@ public class ConsumerKylinOrderRefundExpressRedisStreamConfig extends RedisStrea
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlOrderRefundExpress(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_ORDER_REFUND_EXPRESS; MQConst.KylinQueue stream = SQL_ORDER_REFUND_EXPRESS;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerKylinSmsSenderRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerKylinSmsSenderRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlURegister(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.AdamQueue stream = MQConst.AdamQueue.SMS_NOTICE; MQConst.AdamQueue stream = MQConst.AdamQueue.SMS_NOTICE;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlOrderWithdrawRedisStreamConfig extends RedisStreamC ...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlOrderWithdrawRedisStreamConfig extends RedisStreamC
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlWithdraw(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_ORDER_WITHDRAW; MQConst.KylinQueue stream = SQL_ORDER_WITHDRAW;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlPerformanceLackRedisStreamConfig extends RedisStrea ...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlPerformanceLackRedisStreamConfig extends RedisStrea
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlPLack(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_PERFORMANCE_LACK; MQConst.KylinQueue stream = SQL_PERFORMANCE_LACK;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -30,7 +30,7 @@ public class ConsumerKylinSqlStationRedisStreamConfig extends RedisStreamConfig ...@@ -30,7 +30,7 @@ public class ConsumerKylinSqlStationRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlStation(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_STATION; MQConst.KylinQueue stream = SQL_STATION;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlTransferRedisStreamConfig extends RedisStreamConfig ...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlTransferRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlTransfer(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_TRANSFER; MQConst.KylinQueue stream = SQL_TRANSFER;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlTransferResultRedisStreamConfig extends RedisStream ...@@ -29,7 +29,7 @@ public class ConsumerKylinSqlTransferResultRedisStreamConfig extends RedisStream
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlTransferResult(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.KylinQueue stream = SQL_TRANSFER_RESULT; MQConst.KylinQueue stream = SQL_TRANSFER_RESULT;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -28,7 +28,7 @@ public class ConsumerSlimeFieldRedisStreamConfig extends RedisStreamConfig { ...@@ -28,7 +28,7 @@ public class ConsumerSlimeFieldRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlField(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_FIELD; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_FIELD;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerSlimeLineRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerSlimeLineRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlLine(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_LINE; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_LINE;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
...@@ -42,29 +42,29 @@ public class ConsumerSlimeLineRedisStreamConfig extends RedisStreamConfig { ...@@ -42,29 +42,29 @@ public class ConsumerSlimeLineRedisStreamConfig extends RedisStreamConfig {
return subscriptionList; return subscriptionList;
} }
/** // /**
* 验票更新 // * 验票更新
* // *
* @param listenerContainer // * @param listenerContainer
* @param t // * @param t
* @return // * @return
*/ // */
private Subscription receiveTransferResult(StreamMessageListenerContainer<String, MapRecord<String, String, String>> listenerContainer, int t) { // private Subscription receiveTransferResult(StreamMessageListenerContainer<String, MapRecord<String, String, String>> listenerContainer, int t) {
return listenerContainer.receiveAutoAck(Consumer.from(MQConst.SlimeQueue.SQL_SLIME_LINE.getGroup(), getConsumerName(MQConst.SlimeQueue.SQL_SLIME_LINE.name() + t)), // return listenerContainer.receiveAutoAck(Consumer.from(MQConst.SlimeQueue.SQL_SLIME_LINE.getGroup(), getConsumerName(MQConst.SlimeQueue.SQL_SLIME_LINE.name() + t)),
StreamOffset.create(MQConst.SlimeQueue.SQL_SLIME_LINE.getKey(), ReadOffset.lastConsumed()), consumerSlimeLineRdsReceiver); // StreamOffset.create(MQConst.SlimeQueue.SQL_SLIME_LINE.getKey(), ReadOffset.lastConsumed()), consumerSlimeLineRdsReceiver);
} // }
//
/* —————————————————————————— | —————————————————————————— | —————————————————————————— */ // /* —————————————————————————— | —————————————————————————— | —————————————————————————— */
//
/* -------------------------------------------------------- | 验票更新 */ // /* -------------------------------------------------------- | 验票更新 */
//
@Bean // @Bean
public Subscription subscriptionReceiveLine0(RedisConnectionFactory factory) { // public Subscription subscriptionReceiveLine0(RedisConnectionFactory factory) {
var listenerContainer = this.buildStreamMessageListenerContainer(factory); // var listenerContainer = this.buildStreamMessageListenerContainer(factory);
var subscription = receiveTransferResult(listenerContainer, 0); // var subscription = receiveTransferResult(listenerContainer, 0);
listenerContainer.start(); // listenerContainer.start();
return subscription; // return subscription;
} // }
// @Bean // @Bean
// public Subscription subscriptionReceiveLine1(RedisConnectionFactory factory) { // public Subscription subscriptionReceiveLine1(RedisConnectionFactory factory) {
......
...@@ -27,7 +27,7 @@ public class ConsumerSlimePerformanceInsertRedisStreamConfig extends RedisStream ...@@ -27,7 +27,7 @@ public class ConsumerSlimePerformanceInsertRedisStreamConfig extends RedisStream
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSlimeInsert(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_PERFORMANCE_INSERT; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_PERFORMANCE_INSERT;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerSlimePerformanceRedisStreamConfig extends RedisStreamConfig ...@@ -27,7 +27,7 @@ public class ConsumerSlimePerformanceRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlReceiveTransfer(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_PERFORMANCE_UPDATE; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_PERFORMANCE_UPDATE;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerSlimeSponsorRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerSlimeSponsorRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSlimeSponsor(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_SPONSOR; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_SPONSOR;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerSlimeStep2RedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerSlimeStep2RedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSlimeStep2(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_STEP2; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_STEP2;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerSlimeTicketRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerSlimeTicketRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSlimeTicketU(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_TICKET_UPDATE; MQConst.SlimeQueue stream = MQConst.SlimeQueue.SQL_SLIME_TICKET_UPDATE;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerStoneLogsRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerStoneLogsRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlIL(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.StoneQueue stream = MQConst.StoneQueue.STONE_INSERT_LOGS; MQConst.StoneQueue stream = MQConst.StoneQueue.STONE_INSERT_LOGS;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -27,7 +27,7 @@ public class ConsumerStoneOrderRedisStreamConfig extends RedisStreamConfig { ...@@ -27,7 +27,7 @@ public class ConsumerStoneOrderRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlOC(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.StoneQueue stream = MQConst.StoneQueue.STONE_ORDER_COUPON; MQConst.StoneQueue stream = MQConst.StoneQueue.STONE_ORDER_COUPON;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -28,7 +28,7 @@ public class ConsumerStoneUserRedisStreamConfig extends RedisStreamConfig { ...@@ -28,7 +28,7 @@ public class ConsumerStoneUserRedisStreamConfig extends RedisStreamConfig {
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlStoneInsertUser(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.StoneQueue stream = MQConst.StoneQueue.STONE_INSERT_USER; MQConst.StoneQueue stream = MQConst.StoneQueue.STONE_INSERT_USER;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSmileUserRedisStreamConfig extends RedisStreamConfig { ...@@ -29,7 +29,7 @@ public class ConsumerSmileUserRedisStreamConfig extends RedisStreamConfig {
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSU(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SmileQueue stream = MQConst.SmileQueue.SMILE_USER; MQConst.SmileQueue stream = MQConst.SmileQueue.SMILE_USER;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetAnswerRedisStreamConfig extends RedisStreamConfig { ...@@ -29,7 +29,7 @@ public class ConsumerSweetAnswerRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSAI(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_ANSWER_INSERT; MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_ANSWER_INSERT;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetAntigenicQuestionRedisStreamConfig extends RedisStream ...@@ -29,7 +29,7 @@ public class ConsumerSweetAntigenicQuestionRedisStreamConfig extends RedisStream
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSAQ(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_ANTIGENIC_QUESTION; MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_ANTIGENIC_QUESTION;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetCityVoteRedisStreamConfig extends RedisStreamConfig { ...@@ -29,7 +29,7 @@ public class ConsumerSweetCityVoteRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSCV(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_CITY_VOTE; MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_CITY_VOTE;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetIntegralActivityDrawRedisStreamConfig extends RedisStr ...@@ -29,7 +29,7 @@ public class ConsumerSweetIntegralActivityDrawRedisStreamConfig extends RedisStr
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSIAD(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = SWEET_INTEGRAL_ACTIVITY_DRAW; MQConst.SweetQueue stream = SWEET_INTEGRAL_ACTIVITY_DRAW;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -30,7 +30,7 @@ public class ConsumerSweetMaoDengConfig extends RedisStreamConfig { ...@@ -30,7 +30,7 @@ public class ConsumerSweetMaoDengConfig extends RedisStreamConfig {
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSWMTI(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = SWEET_WECHAT_MAODENG_TEXT_INSERT; MQConst.SweetQueue stream = SWEET_WECHAT_MAODENG_TEXT_INSERT;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -33,7 +33,7 @@ public class ConsumerSweetOtherApiStreamConfig extends RedisStreamConfig { ...@@ -33,7 +33,7 @@ public class ConsumerSweetOtherApiStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSTM(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_TEMPLATE_MSG; MQConst.SweetQueue stream = MQConst.SweetQueue.SWEET_TEMPLATE_MSG;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -30,7 +30,7 @@ public class ConsumerSweetPosterRdsReceiverConfig extends RedisStreamConfig { ...@@ -30,7 +30,7 @@ public class ConsumerSweetPosterRdsReceiverConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSP(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = SWEET_POSTER; MQConst.SweetQueue stream = SWEET_POSTER;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetRemindRedisStreamConfig extends RedisStreamConfig { ...@@ -29,7 +29,7 @@ public class ConsumerSweetRemindRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSRI(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = SWEET_REMIND_INSERT; MQConst.SweetQueue stream = SWEET_REMIND_INSERT;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetSqlLuckDrawRedisStreamConfig extends RedisStreamConfig ...@@ -29,7 +29,7 @@ public class ConsumerSweetSqlLuckDrawRedisStreamConfig extends RedisStreamConfig
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlLR(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = LUCK_DRAW; MQConst.SweetQueue stream = LUCK_DRAW;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetSqlUserRelationMDSKRedisStreamConfig extends RedisStre ...@@ -29,7 +29,7 @@ public class ConsumerSweetSqlUserRelationMDSKRedisStreamConfig extends RedisStre
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlARM(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = ARTISTS_RELATION_MDSK; MQConst.SweetQueue stream = ARTISTS_RELATION_MDSK;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -30,7 +30,7 @@ public class ConsumerSweetSqlUserRelationRedisStreamConfig extends RedisStreamCo ...@@ -30,7 +30,7 @@ public class ConsumerSweetSqlUserRelationRedisStreamConfig extends RedisStreamCo
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlAR_RE(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = ARTISTS_RELATION; MQConst.SweetQueue stream = ARTISTS_RELATION;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup());
......
...@@ -29,7 +29,7 @@ public class ConsumerSweetUserRedisStreamConfig extends RedisStreamConfig { ...@@ -29,7 +29,7 @@ public class ConsumerSweetUserRedisStreamConfig extends RedisStreamConfig {
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Bean @Bean
public List<Subscription> subscriptionSql(RedisConnectionFactory factory) { public List<Subscription> subscriptionSqlSWUI(RedisConnectionFactory factory) {
List<Subscription> subscriptionList = new ArrayList<>(); List<Subscription> subscriptionList = new ArrayList<>();
MQConst.SweetQueue stream = SWEET_WECHAT_USER_INSERT; MQConst.SweetQueue stream = SWEET_WECHAT_USER_INSERT;
this.initStream(stringRedisTemplate, stream.getKey(), stream.getGroup()); this.initStream(stringRedisTemplate, stream.getKey(), stream.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