Package com.netflix.hystrix

Examples of com.netflix.hystrix.HystrixCommand$Setter


            }
        });
    }

    public static HystrixCommand getHystrixCommandByKey(String key) {
        HystrixCommand hystrixCommand = null;
        Collection<HystrixCommand<?>> executedCommands =
                HystrixRequestLog.getCurrentRequest().getExecutedCommands();
        for (HystrixCommand command : executedCommands) {
            if (command.getCommandKey().name().equals(key)) {
                hystrixCommand = command;
View Full Code Here


         * @param executor Executor used to execute this request.
         * @return
         */
        @SuppressWarnings({ "rawtypes", "unchecked" })
    public Builder withCommandData(Executor executor) {
            HystrixCommand command = (HystrixCommand) executor;
            withEventList(command.getExecutionEvents())
                    .withExecutionTime(command.getExecutionTimeInMilliseconds())
                    .withException((Exception) command.getFailedExecutionException());
            return this;
        }
View Full Code Here

TOP

Related Classes of com.netflix.hystrix.HystrixCommand$Setter

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.