Browse Source

Document and expose HystrixDelegatingContract

HystrixDelegatingContract is reusable when developers like @marcingrzejszczak make custom invocation handlers.
pull/305/head
Adrian Cole 9 years ago
parent
commit
20f3721497
  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