Skip to content

Commit 20f3721

Browse files
committed
Document and expose HystrixDelegatingContract
HystrixDelegatingContract is reusable when developers like @marcingrzejszczak make custom invocation handlers.
1 parent 7cbddf1 commit 20f3721

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
import feign.Contract;
1212
import feign.MethodMetadata;
1313

14-
final class HystrixDelegatingContract implements Contract {
14+
/**
15+
* This special cases methods that return {@link HystrixCommand}, so that they
16+
* are decoded properly.
17+
*
18+
* <p>For example, {@literal HystrixCommand<Foo>} will decode {@code Foo}.
19+
*/
20+
// Visible for use in custom Hystrix invocation handlers
21+
public final class HystrixDelegatingContract implements Contract {
1522

1623
private final Contract delegate;
1724

0 commit comments

Comments
 (0)