public class HystrixStreamTask extends Object implements org.springframework.context.ApplicationContextAware
(nested
private class MetricsPoller)| Constructor and Description |
|---|
HystrixStreamTask(org.springframework.messaging.MessageChannel outboundChannel,
org.springframework.cloud.client.ServiceInstance registration,
HystrixStreamProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
gatherMetrics() |
void |
sendMetrics() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public HystrixStreamTask(org.springframework.messaging.MessageChannel outboundChannel,
org.springframework.cloud.client.ServiceInstance registration,
HystrixStreamProperties properties)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException@Scheduled(fixedRateString="${hystrix.stream.queue.sendRate:500}")
public void sendMetrics()
@Scheduled(fixedRateString="${hystrix.stream.queue.gatherRate:500}")
public void gatherMetrics()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.