yangys
2024-04-02 e92e8c3bf21effadc856fe335d50cf8605512ccf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.qianwen.core.websocket.config;
 
import com.qianwen.core.websocket.distribute.LocalMessageDistributor;
import com.qianwen.core.websocket.distribute.MessageDistributor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
@ConditionalOnProperty(prefix = WebSocketProperties.PREFIX, name = {"message-distributor"}, havingValue = MessageDistributorTypeConstants.LOCAL)
@Configuration(proxyBeanMethods = false)
/* loaded from: blade-starter-websocket-9.3.0.0-SNAPSHOT.jar:org/springblade/core/websocket/config/LocalMessageDistributorConfiguration.class */
public class LocalMessageDistributorConfiguration {
    @ConditionalOnMissingBean({MessageDistributor.class})
    @Bean
    public LocalMessageDistributor messageDistributor() {
        return new LocalMessageDistributor();
    }
}