1
2
3
4
5
6 package org.tailormap.api.configuration;
7
8 import ch.rasc.sse.eventbus.config.EnableSseEventBus;
9 import org.springframework.boot.context.properties.ConfigurationProperties;
10 import org.springframework.boot.context.properties.EnableConfigurationProperties;
11 import org.springframework.context.annotation.Configuration;
12 import org.springframework.scheduling.annotation.EnableScheduling;
13
14 @Configuration
15 @EnableConfigurationProperties
16 @ConfigurationProperties(prefix = "tailormap-api")
17 @EnableSseEventBus
18 @EnableScheduling
19 public class TailormapConfig {
20 private int timeout;
21
22 public int getTimeout() {
23 return timeout;
24 }
25
26 public TailormapConfig setTimeout(int timeout) {
27 this.timeout = timeout;
28 return this;
29 }
30 }