/hystrix-function-wrapper

A small lib to wrap any lambda with a hystrix command

Primary LanguageJava

Hystrix Function Wrapper

An utility lib that allows lambdas to be wrapped in hystrix commands.

Dependency

    <dependency>
        <groupId>io.appform.core</groupId>
        <artifactId>hystrix-function-wrapper</artifactId>
        <version>1.1.8</version>
    </dependency>

Sample code

CommandFactory.<Boolean>create("test", "test")
                .executor(() -> true) //Your lambda here
                .execute();

License

Apache 2.0