com.netflix.hystrix.HystrixCollapser Java Examples
The following examples show how to use
com.netflix.hystrix.HystrixCollapser.
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: HystrixCommandConstructorInterceptor.java From skywalking with Apache License 2.0 | 6 votes |
@Override public void onConstruct(EnhancedInstance objInst, Object[] allArguments) { String commandIdentify = ""; if (HystrixCommand.class.isAssignableFrom(objInst.getClass())) { HystrixCommand hystrixCommand = (HystrixCommand) objInst; commandIdentify = hystrixCommand.getCommandKey().name(); } else if (HystrixCollapser.class.isAssignableFrom(objInst.getClass())) { HystrixCollapser hystrixCollapser = (HystrixCollapser) objInst; commandIdentify = hystrixCollapser.getCollapserKey().name(); } else if (HystrixObservableCollapser.class.isAssignableFrom(objInst.getClass())) { HystrixObservableCollapser hystrixObservableCollapser = (HystrixObservableCollapser) objInst; commandIdentify = hystrixObservableCollapser.getCollapserKey().name(); } else if (HystrixObservableCommand.class.isAssignableFrom(objInst.getClass())) { HystrixObservableCommand hystrixObservableCommand = (HystrixObservableCommand) objInst; commandIdentify = hystrixObservableCommand.getCommandKey().name(); } objInst.setSkyWalkingDynamicField(new EnhanceRequireObjectCache(OPERATION_NAME_PREFIX + commandIdentify)); }