Package feign.hystrix
Class FallbackFactory.Default<T>
- java.lang.Object
-
- feign.hystrix.FallbackFactory.Default<T>
-
- All Implemented Interfaces:
FallbackFactory<T>
- Enclosing interface:
- FallbackFactory<T>
public static final class FallbackFactory.Default<T> extends java.lang.Object implements FallbackFactory<T>
Returns a constant fallback after logging the cause to FINE level.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface feign.hystrix.FallbackFactory
FallbackFactory.Default<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create(java.lang.Throwable cause)
Returns an instance of the fallback appropriate for the given causejava.lang.String
toString()
-
-
-
Constructor Detail
-
Default
public Default(T constant)
-
-
Method Detail
-
create
public T create(java.lang.Throwable cause)
Description copied from interface:FallbackFactory
Returns an instance of the fallback appropriate for the given cause- Specified by:
create
in interfaceFallbackFactory<T>
- Parameters:
cause
- corresponds toAbstractCommand.getExecutionException()
often, but not always an instance ofFeignException
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-