All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lorne.tx.dubbo.service.impl.TimeOutServiceImpl Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.lorne.tx.dubbo.service.impl;

import com.alibaba.dubbo.config.ProviderConfig;
import com.lorne.tx.Constants;
import com.lorne.tx.service.TimeOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * create by lorne on 2017/8/7
 */
@Service
public class TimeOutServiceImpl implements TimeOutService {


    @Autowired
    private ProviderConfig providerConfig;


    @Override
    public void loadOutTime() {
        int timeOut = providerConfig.getTimeout();
        Constants.maxOutTime = timeOut;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy