
org.seedstack.netflix.hystrix.internal.command.CommandParameters Maven / Gradle / Ivy
/**
* Copyright (c) 2013-2016, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.netflix.hystrix.internal.command;
import org.aopalliance.intercept.MethodInvocation;
import org.seedstack.netflix.hystrix.internal.annotation.HystrixCommand;
import java.lang.reflect.Method;
public class CommandParameters {
private final HystrixCommand hystrixCommand;
private final Method method;
private final Method fallbackMethod;
private final Object[] args;
private final MethodInvocation invocation;
private final Object proxy;
public CommandParameters(HystrixCommand hystrixCommand, Method method, Method fallbackMethod, Object[] args, MethodInvocation invocation, Object proxy) {
this.hystrixCommand = hystrixCommand;
this.method = method;
this.fallbackMethod = fallbackMethod;
this.args = args;
this.invocation = invocation;
this.proxy = proxy;
}
HystrixCommand getHystrixCommand() {
return hystrixCommand;
}
Method getMethod() {
return method;
}
Method getFallbackMethod() {
return fallbackMethod;
}
Object[] getArgs() {
return args;
}
MethodInvocation getInvocation() {
return invocation;
}
Object getProxy() {
return proxy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy