-
ComposedHystrixMetricsPublisher
According to Hystrix specification it is possible to register only one plugin of every type. This class is supposed to avoid this limitation and register list of plugins. All of these plugins will be called sequentially in case of Hystrix events. Sometimes it can be useful.
Example:
HystrixCodaHaleMetricsPublisher plugin1 = new HystrixCodaHaleMetricsPublisher(new MetricRegistry()); HystrixMetricsInitializationNotifier plugin2 = new HystrixMetricsInitializationNotifier(); ComposedHystrixMetricsPublisher composedPlugin = new ComposedHystrixMetricsPublisher(plugin1, plugin2); HystrixPlugins.getInstance().registerMetricsPublisher(composedPlugin);
-
HystrixAggregatedEventStream
This event stream aggregates all Hystrix events for every Hystrix Command and exposes it as a rx-java Observable. It also dynamically adds lazy-initialized commands so event stream is fully aggregated.
Example:
HystrixMetricsInitializationNotifier initNotifier = new HystrixMetricsInitializationNotifier(); HystrixAggregatedEventStream aggregatedStream = new HystrixAggregatedEventStream(initNotifier, m -> true); ... aggregatedStream.observe().map(<...>).filter(<...>);
-
Notifications
You must be signed in to change notification settings - Fork 2
Some useful stuff for Netflix's Hystrix https://github.com/Netflix/Hystrix
License
ringcentral/hystrix-addons
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Some useful stuff for Netflix's Hystrix https://github.com/Netflix/Hystrix
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published