日志记录提交
This commit is contained in:
@@ -11,6 +11,8 @@ public class AuditProperties {
|
||||
private String endpoint;
|
||||
private int maxPayloadLength = 16000;
|
||||
private String serviceName = "unknown-service";
|
||||
private final Outbox outbox = new Outbox();
|
||||
private final Rocketmq rocketmq = new Rocketmq();
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
@@ -20,4 +22,44 @@ public class AuditProperties {
|
||||
public void setMaxPayloadLength(int maxPayloadLength) { this.maxPayloadLength = maxPayloadLength; }
|
||||
public String getServiceName() { return serviceName; }
|
||||
public void setServiceName(String serviceName) { this.serviceName = serviceName; }
|
||||
public Outbox getOutbox() { return outbox; }
|
||||
public Rocketmq getRocketmq() { return rocketmq; }
|
||||
|
||||
public static class Outbox {
|
||||
private boolean enabled;
|
||||
private boolean publisherEnabled;
|
||||
private int batchSize = 50;
|
||||
private int leaseSeconds = 60;
|
||||
private int maxAttempts = 5;
|
||||
private int maxCompensations = 2;
|
||||
private int compensationDelayMinutes = 30;
|
||||
private int retentionDays = 30;
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
public boolean isPublisherEnabled() { return publisherEnabled; }
|
||||
public void setPublisherEnabled(boolean publisherEnabled) { this.publisherEnabled = publisherEnabled; }
|
||||
public int getBatchSize() { return batchSize; }
|
||||
public void setBatchSize(int batchSize) { this.batchSize = batchSize; }
|
||||
public int getLeaseSeconds() { return leaseSeconds; }
|
||||
public void setLeaseSeconds(int leaseSeconds) { this.leaseSeconds = leaseSeconds; }
|
||||
public int getMaxAttempts() { return maxAttempts; }
|
||||
public void setMaxAttempts(int maxAttempts) { this.maxAttempts = maxAttempts; }
|
||||
public int getMaxCompensations() { return maxCompensations; }
|
||||
public void setMaxCompensations(int maxCompensations) { this.maxCompensations = maxCompensations; }
|
||||
public int getCompensationDelayMinutes() { return compensationDelayMinutes; }
|
||||
public void setCompensationDelayMinutes(int compensationDelayMinutes) { this.compensationDelayMinutes = compensationDelayMinutes; }
|
||||
public int getRetentionDays() { return retentionDays; }
|
||||
public void setRetentionDays(int retentionDays) { this.retentionDays = retentionDays; }
|
||||
}
|
||||
|
||||
public static class Rocketmq {
|
||||
private String topic = "test-baiyue-audit-event-v1";
|
||||
private int sendTimeoutMs = 3000;
|
||||
|
||||
public String getTopic() { return topic; }
|
||||
public void setTopic(String topic) { this.topic = topic; }
|
||||
public int getSendTimeoutMs() { return sendTimeoutMs; }
|
||||
public void setSendTimeoutMs(int sendTimeoutMs) { this.sendTimeoutMs = sendTimeoutMs; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user