docs: 更新许可证头信息

This commit is contained in:
三丙
2026-06-10 14:26:04 +08:00
parent 771b10eb10
commit 2bf405332f
533 changed files with 533 additions and 802 deletions

View File

@@ -4,7 +4,7 @@
开源代码,仅供学习和交流研究使用,商用请联系三丙
微信mohan_88888
抖音:程序员三丙
付费课程知识星球https://t.zsxq.com/aKtXo
付费课程https://www.bilibili.com/cheese/play/ss942400790
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
@@ -54,5 +54,4 @@
</dependency>
</dependencies>
</project>

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;
import java.util.HashMap;
import java.util.Map;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,12 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;
import sanbing.jcpp.infrastructure.queue.common.TopicPartitionInfo;
import java.util.List;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue;
import sanbing.jcpp.infrastructure.queue.common.TopicPartitionInfo;
public interface QueueProducer<T extends QueueMsg> {

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.common;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.common;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.common;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;
@@ -22,7 +22,6 @@ import java.net.UnknownHostException;
import java.util.Collections;
import java.util.List;
/**
* @author 九筒
*/
@@ -76,7 +75,6 @@ public class DefaultServiceInfoProvider implements ServiceInfoProvider {
generateNewServiceInfoWithCurrentSystemInfo();
}
@Override
public boolean isMonolith() {
return "monolith".equals(getServiceType());

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;
@@ -29,7 +29,6 @@ public class DummyDiscoveryProvider implements DiscoveryProvider {
this.partitionProvider = partitionProvider;
}
@AfterStartUp(order = AfterStartUp.DISCOVERY_SERVICE)
public void onApplicationEvent(ApplicationReadyEvent event) {
partitionProvider.recalculatePartitions(serviceInfoProvider.getServiceInfo(), Collections.emptyList());

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;
@@ -70,7 +70,6 @@ public class HashPartitionProvider implements PartitionProvider {
partitionSizesMap.put(appKey, appPartitions);
}
private TopicPartitionInfo resolve(QueueKey queueKey, int hash) {
Integer partitionSize = partitionSizesMap.get(queueKey);
if (partitionSize == null) {
@@ -104,7 +103,6 @@ public class HashPartitionProvider implements PartitionProvider {
return resolve(queueKey, hash(hashFunction, pileCode));
}
/**
* 根据服务类型和队列名称获取队列键
* 此方法用于构造一个队列键对象,并检查该队列键是否存在于分区大小映射中
@@ -126,7 +124,6 @@ public class HashPartitionProvider implements PartitionProvider {
return queueKey;
}
/**
* 重新计算分区分布
* 此方法用于根据当前服务信息和其他服务信息来重新计算分区分布,
@@ -223,7 +220,6 @@ public class HashPartitionProvider implements PartitionProvider {
}
}
/**
* 发布分区变更事件
* 当分区发生变化时,调用此方法来发布分区变更事件
@@ -251,7 +247,6 @@ public class HashPartitionProvider implements PartitionProvider {
}
}
private void logServiceInfo(ServiceInfo server) {
log.info("Found server: {}", server.getServiceId());
}
@@ -277,7 +272,6 @@ public class HashPartitionProvider implements PartitionProvider {
}
}
/**
* 构建主题分区信息
*
@@ -294,7 +288,6 @@ public class HashPartitionProvider implements PartitionProvider {
return buildTopicPartitionInfo(queueKey, partition, partitions != null && partitions.contains(partition));
}
/**
* 构建主题分区信息对象
* <p>
@@ -314,5 +307,4 @@ public class HashPartitionProvider implements PartitionProvider {
.build();
}
}

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;
import sanbing.jcpp.infrastructure.queue.common.TopicPartitionInfo;
import sanbing.jcpp.proto.gen.ClusterProto.ServiceInfo;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;
import sanbing.jcpp.proto.gen.ClusterProto;
/**

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery.event;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery.event;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery.event;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.discovery.event;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;
@@ -136,7 +136,6 @@ public class KafkaConsumerStatsService {
}
}
@Builder
@Data
private static class GroupTopicStats {

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;
import sanbing.jcpp.infrastructure.queue.QueueMsg;
import java.io.IOException;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;
@@ -111,7 +111,6 @@ public class KafkaSettings {
@Value("${queue.kafka.other-inline:}")
private String otherInline;
@Setter
private Map<String, List<JCPPProperty>> consumerPropertiesPerTopic = Collections.emptyMap();
@Setter

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.kafka;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.memory;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.memory;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.memory;

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.memory;
import sanbing.jcpp.infrastructure.queue.QueueMsg;
import java.util.List;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.processing;

View File

@@ -2,11 +2,10 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.provider;
import sanbing.jcpp.infrastructure.queue.ProtoQueueMsg;
import sanbing.jcpp.infrastructure.queue.QueueConsumer;
import sanbing.jcpp.infrastructure.queue.QueueProducer;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.provider;

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.provider;
@@ -74,7 +74,6 @@ public class KafkaAppQueueFactory implements AppQueueFactory {
return requestBuilder.build();
}
@PreDestroy
private void destroy() {
if (appAdmin != null) {

View File

@@ -2,7 +2,7 @@
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
* 微信mohan_88888
* 抖音:程序员三丙
* 付费课程知识星球https://t.zsxq.com/aKtXo
* 付费课程https://www.bilibili.com/cheese/play/ss942400790
*/
package sanbing.jcpp.infrastructure.queue.settings;