mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
rename field to better represent what it does
This commit is contained in:
@@ -28,7 +28,7 @@ export interface ApplicationSettings {
|
|||||||
queryTimeout: number
|
queryTimeout: number
|
||||||
keepStatusDays: number
|
keepStatusDays: number
|
||||||
maxFeedCapacity: number
|
maxFeedCapacity: number
|
||||||
maxCleanupBatchSize: number
|
databaseCleanupBatchSize: number
|
||||||
refreshIntervalMinutes: number
|
refreshIntervalMinutes: number
|
||||||
cache: ApplicationSettingsCache
|
cache: ApplicationSettingsCache
|
||||||
announcement?: string
|
announcement?: string
|
||||||
|
|||||||
@@ -27,7 +27,10 @@ app:
|
|||||||
|
|
||||||
# number of database updating threads
|
# number of database updating threads
|
||||||
databaseUpdateThreads: 1
|
databaseUpdateThreads: 1
|
||||||
|
|
||||||
|
# rows to delete per query while cleaning up old entries
|
||||||
|
databaseCleanupBatchSize: 100
|
||||||
|
|
||||||
# settings for sending emails (password recovery)
|
# settings for sending emails (password recovery)
|
||||||
smtpHost: localhost
|
smtpHost: localhost
|
||||||
smtpPort: 25
|
smtpPort: 25
|
||||||
@@ -67,9 +70,6 @@ app:
|
|||||||
# entries to keep per feed, old entries will be deleted, 0 to disable
|
# entries to keep per feed, old entries will be deleted, 0 to disable
|
||||||
maxFeedCapacity: 500
|
maxFeedCapacity: 500
|
||||||
|
|
||||||
# rows to delete per query while cleaning up old entries, minimum 100
|
|
||||||
maxCleanupBatchSize: 100
|
|
||||||
|
|
||||||
# limit the number of feeds a user can subscribe to, 0 to disable
|
# limit the number of feeds a user can subscribe to, 0 to disable
|
||||||
maxFeedsPerUser: 0
|
maxFeedsPerUser: 0
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ app:
|
|||||||
# number of database updating threads
|
# number of database updating threads
|
||||||
databaseUpdateThreads: 1
|
databaseUpdateThreads: 1
|
||||||
|
|
||||||
|
# rows to delete per query while cleaning up old entries
|
||||||
|
databaseCleanupBatchSize: 100
|
||||||
|
|
||||||
# settings for sending emails (password recovery)
|
# settings for sending emails (password recovery)
|
||||||
smtpHost:
|
smtpHost:
|
||||||
smtpPort:
|
smtpPort:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
import javax.validation.constraints.Min;
|
import javax.validation.constraints.Min;
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Positive;
|
||||||
|
|
||||||
import org.apache.commons.lang3.time.DateUtils;
|
import org.apache.commons.lang3.time.DateUtils;
|
||||||
|
|
||||||
@@ -95,6 +96,11 @@ public class CommaFeedConfiguration extends Configuration {
|
|||||||
@Valid
|
@Valid
|
||||||
private Integer databaseUpdateThreads;
|
private Integer databaseUpdateThreads;
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
@Positive
|
||||||
|
@Valid
|
||||||
|
private Integer databaseCleanupBatchSize = 100;
|
||||||
|
|
||||||
private String smtpHost;
|
private String smtpHost;
|
||||||
private int smtpPort;
|
private int smtpPort;
|
||||||
private boolean smtpTls;
|
private boolean smtpTls;
|
||||||
@@ -135,11 +141,6 @@ public class CommaFeedConfiguration extends Configuration {
|
|||||||
@Valid
|
@Valid
|
||||||
private Integer maxFeedCapacity;
|
private Integer maxFeedCapacity;
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Min(100)
|
|
||||||
@Valid
|
|
||||||
private Integer maxCleanupBatchSize;
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Valid
|
@Valid
|
||||||
private Integer maxFeedsPerUser = 0;
|
private Integer maxFeedsPerUser = 0;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public class DatabaseCleaningService {
|
|||||||
this.feedEntryDAO = feedEntryDAO;
|
this.feedEntryDAO = feedEntryDAO;
|
||||||
this.feedEntryContentDAO = feedEntryContentDAO;
|
this.feedEntryContentDAO = feedEntryContentDAO;
|
||||||
this.feedEntryStatusDAO = feedEntryStatusDAO;
|
this.feedEntryStatusDAO = feedEntryStatusDAO;
|
||||||
this.batchSize = config.getApplicationSettings().getMaxCleanupBatchSize();
|
this.batchSize = config.getApplicationSettings().getDatabaseCleanupBatchSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cleanFeedsWithoutSubscriptions() {
|
public void cleanFeedsWithoutSubscriptions() {
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ app:
|
|||||||
# number of database updating threads
|
# number of database updating threads
|
||||||
databaseUpdateThreads: 1
|
databaseUpdateThreads: 1
|
||||||
|
|
||||||
|
# rows to delete per query while cleaning up old entries
|
||||||
|
databaseCleanupBatchSize: 100
|
||||||
|
|
||||||
# settings for sending emails (password recovery)
|
# settings for sending emails (password recovery)
|
||||||
smtpHost: localhost
|
smtpHost: localhost
|
||||||
smtpPort: 25
|
smtpPort: 25
|
||||||
@@ -67,9 +70,6 @@ app:
|
|||||||
# entries to keep per feed, old entries will be deleted, 0 to disable
|
# entries to keep per feed, old entries will be deleted, 0 to disable
|
||||||
maxFeedCapacity: 500
|
maxFeedCapacity: 500
|
||||||
|
|
||||||
# rows to delete per query while cleaning up old entries, minimum 100
|
|
||||||
maxCleanupBatchSize: 100
|
|
||||||
|
|
||||||
# limit the number of feeds a user can subscribe to, 0 to disable
|
# limit the number of feeds a user can subscribe to, 0 to disable
|
||||||
maxFeedsPerUser: 0
|
maxFeedsPerUser: 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user