
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HystrixMetricsPublisherCommand
Metrics publisher for a HystrixCommand 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 |
|---|
void initialize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||