Class WebSocketConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config) org.springframework.scheduling.TaskSchedulervoidregisterStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) stompOAuth2ClientCredentialsWithRefreshProvider(Optional<org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler> stompBrokerRelayMessageHandlerOptional) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
addArgumentResolvers, addReturnValueHandlers, configureClientInboundChannel, configureClientOutboundChannel, configureMessageConverters, configureWebSocketTransport, getPhase
-
Constructor Details
-
WebSocketConfig
public WebSocketConfig()
-
-
Method Details
-
configureMessageBroker
public void configureMessageBroker(@NonNull org.springframework.messaging.simp.config.MessageBrokerRegistry config) - Specified by:
configureMessageBrokerin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
-
registerStompEndpoints
public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) - Specified by:
registerStompEndpointsin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
-
heartBeatScheduler
@Bean public org.springframework.scheduling.TaskScheduler heartBeatScheduler() -
oauthTokenRefreshExecutor
-
stompOAuth2ClientCredentialsWithRefreshProvider
@Nullable @Bean public StompOAuth2ClientCredentialsWithRefreshProvider stompOAuth2ClientCredentialsWithRefreshProvider(Optional<org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler> stompBrokerRelayMessageHandlerOptional)
-