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:${hystrix.stream.queue.send-rate:500}}")
public void sendMetrics()
@Scheduled(fixedRateString="${hystrix.stream.queue.gatherRate:${hystrix.stream.queue.gather-rate:500}}")
public void gatherMetrics()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.