Package com.netflix.hystrix.strategy.executionhook

Examples of com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook


                ));
    }

    @Test
    public void withExecutionMappers() throws Exception {
        final HystrixCommandExecutionHook hook = new ExceptionLoggingCommandHook();
        final TenacityConfiguredBundle bundle = TenacityBundleBuilder
                .newBuilder()
                .configurationFactory(configurationFactory)
                .commandExecutionHook(hook)
                .build();
View Full Code Here


        HystrixPlugins.getInstance().commandExecutionHook.set(null);
    }

    @Test
    public void testCommandExecutionHookDefaultImpl() {
        HystrixCommandExecutionHook impl = HystrixPlugins.getInstance().getCommandExecutionHook();
        assertTrue(impl instanceof HystrixCommandExecutionHookDefault);
    }
View Full Code Here

    }

    @Test
    public void testCommandExecutionHookViaRegisterMethod() {
        HystrixPlugins.getInstance().registerCommandExecutionHook(new HystrixCommandExecutionHookTestImpl());
        HystrixCommandExecutionHook impl = HystrixPlugins.getInstance().getCommandExecutionHook();
        assertTrue(impl instanceof HystrixCommandExecutionHookTestImpl);
    }
View Full Code Here

TOP

Related Classes of com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.