Search in sources :

Example 1 with ServiceCImpl

use of com.alipay.sofa.rpc.asynchain.ServiceCImpl in project sofa-rpc by sofastack.

the class ServerC method main.

public static void main(String[] args) {
    ServerConfig serverConfig = new ServerConfig().setPort(12299).setDaemon(false);
    ProviderConfig<ServiceC> providerConfig = new ProviderConfig<ServiceC>().setInterfaceId(ServiceC.class.getName()).setApplication(new ApplicationConfig().setAppName("CCC")).setRef(new ServiceCImpl(1000)).setServer(serverConfig).setRegister(false);
    providerConfig.export();
}
Also used : ServerConfig(com.alipay.sofa.rpc.config.ServerConfig) ServiceC(com.alipay.sofa.rpc.asynchain.ServiceC) ApplicationConfig(com.alipay.sofa.rpc.config.ApplicationConfig) ServiceCImpl(com.alipay.sofa.rpc.asynchain.ServiceCImpl)

Aggregations

ServiceC (com.alipay.sofa.rpc.asynchain.ServiceC)1 ServiceCImpl (com.alipay.sofa.rpc.asynchain.ServiceCImpl)1 ApplicationConfig (com.alipay.sofa.rpc.config.ApplicationConfig)1 ServerConfig (com.alipay.sofa.rpc.config.ServerConfig)1