com.lorne.tx.dubbo.service.impl.TimeOutServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dubbo-transaction Show documentation
Show all versions of dubbo-transaction Show documentation
dubbo-transaction project for Spring Boot
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