java.lang.Object
com.finconsgroup.itserr.marketplace.usercommunication.dm.config.WebSocketConfig
All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer

@Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends Object implements org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
WebSocket and STOMP broker configuration for application and user destinations.
  • Constructor Details

    • WebSocketConfig

      public WebSocketConfig()
  • Method Details

    • configureMessageBroker

      public void configureMessageBroker(@NonNull org.springframework.messaging.simp.config.MessageBrokerRegistry config)
      Specified by:
      configureMessageBroker in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
    • registerStompEndpoints

      public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
      Specified by:
      registerStompEndpoints in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
    • heartBeatScheduler

      @Bean public org.springframework.scheduling.TaskScheduler heartBeatScheduler()
    • oauthTokenRefreshExecutor

      @Bean(destroyMethod="shutdown") public ScheduledExecutorService oauthTokenRefreshExecutor()
    • stompOAuth2ClientCredentialsWithRefreshProvider

      @Nullable @Bean public StompOAuth2ClientCredentialsWithRefreshProvider stompOAuth2ClientCredentialsWithRefreshProvider(Optional<org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler> stompBrokerRelayMessageHandlerOptional)