-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCacheInvalidationSchedulerConfig.java
More file actions
19 lines (14 loc) · 1.09 KB
/
Copy pathCacheInvalidationSchedulerConfig.java
File metadata and controls
19 lines (14 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.example.core.services.config;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.AttributeType;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
@ObjectClassDefinition(name = "Cache invalidation scheduler", description = "cache invaldation scheduler.")
public @interface CacheInvalidationSchedulerConfig {
String DEFAULT_SCHEDULER_EXPRESSION = "0 0 23 * * ?";
@AttributeDefinition(name = "Cron expression defining when this Scheduled Service will run", description = "Default value ('0 0 23 * * ?') will run this job every day at 11PM EST", type = AttributeType.STRING)
String scheduler_expression() default DEFAULT_SCHEDULER_EXPRESSION;
@AttributeDefinition(name = "Enabled", description = "True, if scheduler service is enabled", type = AttributeType.BOOLEAN)
public boolean enabled() default true;
@AttributeDefinition(name = "Invalidation Paths", description = "invalidation Paths", type = AttributeType.STRING)
String[] invalidationPaths() default {"/content/example/example.json"};
}