Browse Source

Merge pull request #305 from Netflix/expose-HystrixDelegatingContract

Document and expose HystrixDelegatingContract
pull/307/head
Adrian Cole 9 years ago
parent
commit
94ec7c2266
  1. 9
      hystrix/src/main/java/feign/hystrix/HystrixDelegatingContract.java

9
hystrix/src/main/java/feign/hystrix/HystrixDelegatingContract.java

@ -11,7 +11,14 @@ import com.netflix.hystrix.HystrixCommand; @@ -11,7 +11,14 @@ import com.netflix.hystrix.HystrixCommand;
import feign.Contract;
import feign.MethodMetadata;
final class HystrixDelegatingContract implements Contract {
/**
* This special cases methods that return {@link HystrixCommand}, so that they
* are decoded properly.
*
* <p>For example, {@literal HystrixCommand<Foo>} will decode {@code Foo}.
*/
// Visible for use in custom Hystrix invocation handlers
public final class HystrixDelegatingContract implements Contract {
private final Contract delegate;

Loading…
Cancel
Save