feat: V1.1 - 注释补充
This commit is contained in:
@@ -36,6 +36,7 @@ public class WritePoint {
|
||||
return keyExpression == null ? "" : keyExpression.replaceAll("\\s+", "");
|
||||
}
|
||||
|
||||
/** @return 是否为 MQ 通道(RocketMQ / Kafka) */
|
||||
public boolean isMq() {
|
||||
return CHANNEL_ROCKETMQ.equals(channel) || CHANNEL_KAFKA.equals(channel);
|
||||
}
|
||||
@@ -136,6 +137,9 @@ public class WritePoint {
|
||||
this.channel = channel == null || channel.isEmpty() ? CHANNEL_REDIS : channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 展示用写入位置,形如 {@code SimpleClass#method:line}
|
||||
*/
|
||||
public String location() {
|
||||
String simpleClass = enclosingClass;
|
||||
if (simpleClass != null && simpleClass.contains(".")) {
|
||||
|
||||
Reference in New Issue
Block a user