HystrixDashboardStream@Deprecated
public class HystrixMetricsPoller
extends java.lang.Object
Polling can be stopped/started. Use shutdown() to permanently shutdown the poller. An implementation note. If there's a version mismatch between hystrix-core and hystrix-metrics-event-stream, the code below may reference a HystrixEventType that does not exist in hystrix-core. If this happens, a j.l.NoSuchFieldError occurs. Since this data is not being generated by hystrix-core, it's safe to count it as 0 and we should log an error to get users to update their dependency set.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HystrixMetricsPoller.MetricsAsJsonPollerListener
Deprecated.
|
| Constructor and Description |
|---|
HystrixMetricsPoller(HystrixMetricsPoller.MetricsAsJsonPollerListener listener,
int delay)
Deprecated.
Allocate resources to begin polling.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Deprecated.
|
void |
pause()
Deprecated.
Pause (stop) polling.
|
void |
shutdown()
Deprecated.
Stops polling and shuts down the ExecutorService.
|
void |
start()
Deprecated.
Start polling.
|
public HystrixMetricsPoller(HystrixMetricsPoller.MetricsAsJsonPollerListener listener, int delay)
Use start to begin polling.
Use shutdown to cleanup resources and stop polling.
Use pause to temporarily stop polling that can be restarted again with start.
listener - for callbacksdelay - public void start()
public void pause()
start as long as shutdown is not called.public void shutdown()
This instance can no longer be used after calling shutdown.
public boolean isRunning()