65 changed files with 473 additions and 62 deletions
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetAdminOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetAdminOpenFeignClientFallbackFactory implements FallbackFactory<EpmetAdminOpenFeignClient> { |
|||
|
|||
private EpmetAdminOpenFeignClientFallback fallback = new EpmetAdminOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public EpmetAdminOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.feign.impl; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.DataReportOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class DataReportOpenFeignClientFallBackFactory implements FallbackFactory<DataReportOpenFeignClient> { |
|||
private DataReportOpenFeignClientFallBack fallback = new DataReportOpenFeignClientFallBack(); |
|||
|
|||
@Override |
|||
public DataReportOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetCommonServiceOpenFeignClientFallbackFactory implements FallbackFactory<EpmetCommonServiceOpenFeignClient> { |
|||
|
|||
private EpmetCommonServiceOpenFeignClientFallback fallback = new EpmetCommonServiceOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public EpmetCommonServiceOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetHeartOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetHeartOpenFeignClientFallbackFactory implements FallbackFactory<EpmetHeartOpenFeignClient> { |
|||
|
|||
private EpmetHeartOpenFeignClientFallback fallback = new EpmetHeartOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public EpmetHeartOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetMessageOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetMessageOpenFeignClientFallbackFactory implements FallbackFactory<EpmetMessageOpenFeignClient> { |
|||
|
|||
private EpmetMessageOpenFeignClientFallback fallback = new EpmetMessageOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public EpmetMessageOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.OssFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class OssFeignClientFallbackFactory implements FallbackFactory<OssFeignClient> { |
|||
|
|||
private OssFeignClientFallback fallback = new OssFeignClientFallback(); |
|||
|
|||
@Override |
|||
public OssFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetPointOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetPointOpenFeignClientFallbackFactory implements FallbackFactory<EpmetPointOpenFeignClient> { |
|||
|
|||
private EpmetPointOpenFeignClientFallback fallback = new EpmetPointOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public EpmetPointOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetThirdOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetThirdOpenFeignClientFallbackFactory implements FallbackFactory<EpmetThirdOpenFeignClient> { |
|||
private EpmetThirdOpenFeignClientFallback fallback = new EpmetThirdOpenFeignClientFallback(); |
|||
@Override |
|||
public EpmetThirdOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.ThirdOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class ThirdOpenFeignClientFallbackFactory implements FallbackFactory<ThirdOpenFeignClient> { |
|||
|
|||
private ThirdOpenFeignClientFallback fallback = new ThirdOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public ThirdOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.GovIssueOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class GovIssueOpenFeignClientFallBackFactory implements FallbackFactory<GovIssueOpenFeignClient> { |
|||
|
|||
private GovIssueOpenFeignClientFallBack fallback = new GovIssueOpenFeignClientFallBack(); |
|||
|
|||
@Override |
|||
public GovIssueOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.GovOrgOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class GovOrgOpenFeignClientFallbackFactory implements FallbackFactory<GovOrgOpenFeignClient> { |
|||
|
|||
private GovOrgOpenFeignClientFallback fallback = new GovOrgOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public GovOrgOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.GovProjectOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class GovProjectOpenFeignClientFallbackFactory implements FallbackFactory<GovProjectOpenFeignClient> { |
|||
|
|||
private GovProjectOpenFeignClientFallback fallback = new GovProjectOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public GovProjectOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.GovVoiceOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class GovVoiceOpenFeignClientFallbackFactory implements FallbackFactory<GovVoiceOpenFeignClient> { |
|||
|
|||
private GovVoiceOpenFeignClientFallback fallback = new GovVoiceOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public GovVoiceOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.OperAccessOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class OperAccessOpenFeignClientFallbackFactory implements FallbackFactory<OperAccessOpenFeignClient> { |
|||
private OperAccessOpenFeignClientFallback fallback = new OperAccessOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public OperAccessOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.OperCrmOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class OperCrmOpenFeignClientFallbackFactory implements FallbackFactory<OperCrmOpenFeignClient> { |
|||
|
|||
private OperCrmOpenFeignClientFallback fallback = new OperCrmOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public OperCrmOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.OperCustomizeOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class OperCustomizeOpenFeignClientFallbackFactory implements FallbackFactory<OperCustomizeOpenFeignClient> { |
|||
|
|||
private OperCustomizeOpenFeignClientFallback fallback = new OperCustomizeOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public OperCustomizeOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.resi.group.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.resi.group.feign.ResiGroupOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class ResiGroupOpenFeignClientFallbackFactory implements FallbackFactory<ResiGroupOpenFeignClient> { |
|||
|
|||
private ResiGroupOpenFeignClientFallback fallback = new ResiGroupOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public ResiGroupOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.resi.partymember.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.resi.partymember.feign.ResiPartyMemberOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class ResiPartyMemberOpenFeignClientFallbackFactory implements FallbackFactory<ResiPartyMemberOpenFeignClient> { |
|||
|
|||
private ResiPartyMemberOpenFeignClientFallback fallback = new ResiPartyMemberOpenFeignClientFallback(); |
|||
|
|||
@Override |
|||
public ResiPartyMemberOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.ResiVoiceOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class ResiVoiceOpenFeignClientFallbackFactory implements FallbackFactory<ResiVoiceOpenFeignClient> { |
|||
private ResiVoiceOpenFeignClientFallback fallback = new ResiVoiceOpenFeignClientFallback(); |
|||
@Override |
|||
public ResiVoiceOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.feign.EpmetUserOpenFeignClient; |
|||
import feign.hystrix.FallbackFactory; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
@Slf4j |
|||
public class EpmetUserOpenFeignClientFallbackFactory implements FallbackFactory<EpmetUserOpenFeignClient> { |
|||
private EpmetUserOpenFeignClientFallback fallback = new EpmetUserOpenFeignClientFallback(); |
|||
@Override |
|||
public EpmetUserOpenFeignClient create(Throwable cause) { |
|||
log.debug(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
|||
return fallback; |
|||
} |
|||
} |
Loading…
Reference in new issue