Class FallbackFactory.Default<T>

java.lang.Object
org.springframework.cloud.openfeign.FallbackFactory.Default<T>
All Implemented Interfaces:
FallbackFactory<T>
Enclosing interface:
FallbackFactory<T>

public static final class FallbackFactory.Default<T> extends Object implements FallbackFactory<T>
  • Constructor Details

    • Default

      public Default(T constant)
  • Method Details

    • create

      public T create(Throwable cause)
      Description copied from interface: FallbackFactory
      Returns an instance of the fallback appropriate for the given cause.
      Specified by:
      create in interface FallbackFactory<T>
      Parameters:
      cause - cause of an exception.
      Returns:
      fallback
    • toString

      public String toString()
      Overrides:
      toString in class Object