Skip to content

Commit

Permalink
feat: default value refresh rate
Browse files Browse the repository at this point in the history
  • Loading branch information
gmann7 committed Nov 25, 2024
1 parent bb76844 commit b8c5b79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import it.finanze.sanita.fse2.ms.gtw.garbage.client.IConfigClient;
import it.finanze.sanita.fse2.ms.gtw.garbage.dto.ConfigItemDTO;
import it.finanze.sanita.fse2.ms.gtw.garbage.dto.ConfigItemDTO.ConfigDataItemDTO;
import it.finanze.sanita.fse2.ms.gtw.garbage.enums.ConfigItemTypeEnum;
import it.finanze.sanita.fse2.ms.gtw.garbage.service.IConfigSRV;
import it.finanze.sanita.fse2.ms.gtw.garbage.utility.ProfileUtility;
Expand Down Expand Up @@ -32,7 +33,7 @@ public class ConfigSRV implements IConfigSRV {
@Autowired
private ProfileUtility profiles;

@Value("${ms.config.refresh-rate}")
@Value("${ms.config.refresh-rate:900000}")
private Long refreshRate;

private final Map<String, Pair<Long, String>> props;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ ms.url.gtw-config=
#######################################
# GTW-CONFIG
#######################################
# default value 15 minutes
ms.config.refresh-rate=300000

0 comments on commit b8c5b79

Please sign in to comment.