Annotation Interface EnableSseEventBus


@Retention(RUNTIME) @Target(TYPE) @Documented @Import(DefaultSseEventBusConfiguration.class) public @interface EnableSseEventBus
Add this annotation to any @Configuration class to enable the SseEventBus.
 @Configuration
 @EnableSseEventBus
 public class MyAppConfig {
 }
 

To customise the library a configuration class can implement the interface SseEventBusConfigurer and override certain methods.

 @Configuration
 @EnableSseEventBus
 public class Config implements SseEventBusConfigurer {
        @Override
        public int clientExpirationInSeconds() {
                return 180;
        }
 }