com.netflix.hystrix.strategy.concurrency.HystrixRequestVariable Java Examples

The following examples show how to use com.netflix.hystrix.strategy.concurrency.HystrixRequestVariable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractContextConcurrencyStrategy.java    From onetwo with Apache License 2.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
		HystrixRequestVariableLifecycle<T> rv) {
	return existingConcurrencyStrategy != null
			? existingConcurrencyStrategy.getRequestVariable(rv)
			: super.getRequestVariable(rv);
}
 
Example #2
Source File: ServiceCombConcurrencyStrategy.java    From servicecomb-pack with Apache License 2.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
    HystrixRequestVariableLifecycle<T> rv) {
  return existingConcurrencyStrategy != null
      ? existingConcurrencyStrategy.getRequestVariable(rv)
      : super.getRequestVariable(rv);
}
 
Example #3
Source File: ThreadLocalAwareStrategy.java    From spring-microservices-in-action with Apache License 2.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return existingConcurrencyStrategy != null
            ? existingConcurrencyStrategy.getRequestVariable(rv)           // Call the existing concurrency strategy's method
            : super.getRequestVariable(rv);
}
 
Example #4
Source File: ThreadLocalAwareStrategy.java    From spring-microservices-in-action with Apache License 2.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return existingConcurrencyStrategy != null
            ? existingConcurrencyStrategy.getRequestVariable(rv)           // Call the existing concurrency strategy's method
            : super.getRequestVariable(rv);
}
 
Example #5
Source File: ThreadLocalAwareStrategy.java    From spring-microservices-in-action with Apache License 2.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return existingConcurrencyStrategy != null
            ? existingConcurrencyStrategy.getRequestVariable(rv)           // Call the existing concurrency strategy's method
            : super.getRequestVariable(rv);
}
 
Example #6
Source File: ThreadLocalAwareStrategy.java    From spring-microservices-in-action with Apache License 2.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return existingConcurrencyStrategy != null
            ? existingConcurrencyStrategy.getRequestVariable(rv)           // Call the existing concurrency strategy's method
            : super.getRequestVariable(rv);
}
 
Example #7
Source File: BladeHystrixConcurrencyStrategy.java    From blade-tool with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
	HystrixRequestVariableLifecycle<T> rv) {
	return existingConcurrencyStrategy != null
		? existingConcurrencyStrategy.getRequestVariable(rv)
		: super.getRequestVariable(rv);
}
 
Example #8
Source File: SWHystrixConcurrencyStrategyWrapper.java    From skywalking with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return new SWHystrixLifecycleForwardingRequestVariable(rv);
}
 
Example #9
Source File: CustomFeignHystrixConcurrencyStrategy.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.hystrixConcurrencyStrategy.getRequestVariable(rv);
}
 
Example #10
Source File: ConcurrencyStrategyDispatcher.java    From astrix with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
	return HystrixStrategyMapping.getDefault().getHystrixConcurrencyStrategy().getRequestVariable(rv);
}
 
Example #11
Source File: MultiConcurrencyStrategyDispatcher.java    From astrix with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return underlying().map(strategy -> strategy.getRequestVariable(rv))
                       .orElseGet(() -> super.getRequestVariable(rv));
}
 
Example #12
Source File: MythHystrixConcurrencyStrategy.java    From myth with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #13
Source File: TracingHystrixConcurrencyStrategy.java    From tx-lcn with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #14
Source File: HmilyHystrixConcurrencyStrategy.java    From hmily with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #15
Source File: SeataHystrixConcurrencyStrategy.java    From spring-cloud-alibaba with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
	return this.delegate.getRequestVariable(rv);
}
 
Example #16
Source File: RaincatHystrixConcurrencyStrategy.java    From Raincat with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #17
Source File: ExecutionContextAwareHystrixStrategy.java    From spring-cloud-ribbon-extensions with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return delegate.getRequestVariable(rv);
}
 
Example #18
Source File: GrayHystrixContextConcurrencyStrategy.java    From spring-cloud-gray with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return delegate.getRequestVariable(rv);
}
 
Example #19
Source File: RequestAttributeHystrixConcurrencyStrategy.java    From Taroco with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #20
Source File: SofaTracerHystrixConcurrencyStrategy.java    From sofa-tracer with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #21
Source File: ThreadLocalProcessHystrixConcurrencyStrategy.java    From Aooms with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
		HystrixRequestVariableLifecycle<T> rv) {
	return this.delegate.getRequestVariable(rv);
}
 
Example #22
Source File: RequestAttributeHystrixConcurrencyStrategy.java    From summerframework with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return existingConcurrencyStrategy != null ? existingConcurrencyStrategy.getRequestVariable(rv)
        : super.getRequestVariable(rv);
}
 
Example #23
Source File: RequestAttributeHystrixConcurrencyStrategy.java    From spring-cloud-yes with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(
        HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #24
Source File: FeignHystrixConcurrencyStrategy.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #25
Source File: FeignHystrixConcurrencyStrategy.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}
 
Example #26
Source File: FeignHystrixConcurrencyStrategy.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
@Override
public <T> HystrixRequestVariable<T> getRequestVariable(HystrixRequestVariableLifecycle<T> rv) {
    return this.delegate.getRequestVariable(rv);
}