Hystrix: Latency and Fault Tolerance for Distributed Systems



com.netflix.hystrix.strategy.metrics
Interface HystrixMetricsPublisherThreadPool


public interface HystrixMetricsPublisherThreadPool

Metrics publisher for a HystrixThreadPool that will be constructed by an implementation of HystrixMetricsPublisher.

Instantiation of implementations of this interface should NOT allocate resources that require shutdown, register listeners or other such global state changes.

The initialize() method will be called once-and-only-once to indicate when this instance can register with external services, start publishing metrics etc.

Doing this logic in the constructor could result in memory leaks, double-publishing and other such behavior because this can be optimistically constructed more than once and "extras" discarded with only one actually having initialize() called on it.


Method Summary
 void initialize()
           
 

Method Detail

initialize

void initialize()