Class TailormapConfig
java.lang.Object
org.tailormap.api.configuration.TailormapConfig
@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix="tailormap-api")
@EnableSseEventBus
@EnableScheduling
public class TailormapConfig
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.springframework.web.servlet.LocaleResolversetTimeout(int timeout) ch.rasc.sse.eventbus.SseEventBusviewerSseEventBus(@Nullable ch.rasc.sse.eventbus.config.SseEventBusConfigurer configurer, @Nullable tools.jackson.databind.ObjectMapper objectMapper, @Nullable List<ch.rasc.sse.eventbus.DataObjectConverter> dataObjectConverters, @Nullable ch.rasc.sse.eventbus.SubscriptionRegistry subscriptionRegistry, @Nullable ch.rasc.sse.eventbus.ReplayStore replayStore, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry, @Nullable ch.rasc.sse.eventbus.observation.SseEventBusObservationConvention observationConvention, @Nullable ch.rasc.sse.eventbus.DistributedEventBus distributedEventBus) Define a new viewer SseEventBus bean for viewer-specific SSE traffic.
-
Constructor Details
-
TailormapConfig
public TailormapConfig()
-
-
Method Details
-
getTimeout
public int getTimeout() -
setTimeout
-
localeResolver
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver() -
viewerSseEventBus
@Bean("viewerSseEventBus") public ch.rasc.sse.eventbus.SseEventBus viewerSseEventBus(@Autowired(required=false) @Nullable ch.rasc.sse.eventbus.config.SseEventBusConfigurer configurer, @Autowired(required=false) @Nullable tools.jackson.databind.ObjectMapper objectMapper, @Autowired(required=false) @Nullable List<ch.rasc.sse.eventbus.DataObjectConverter> dataObjectConverters, @Autowired(required=false) @Nullable ch.rasc.sse.eventbus.SubscriptionRegistry subscriptionRegistry, @Autowired(required=false) @Nullable ch.rasc.sse.eventbus.ReplayStore replayStore, @Autowired(required=false) @Nullable io.micrometer.observation.ObservationRegistry observationRegistry, @Autowired(required=false) @Nullable ch.rasc.sse.eventbus.observation.SseEventBusObservationConvention observationConvention, @Autowired(required=false) @Nullable ch.rasc.sse.eventbus.DistributedEventBus distributedEventBus) Define a new viewer SseEventBus bean for viewer-specific SSE traffic.- Returns:
- the viewerSseEventBus instance
-