public class BufferingCloudWatchMetricSender extends Object implements CloudWatchMetricSender, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.SmartLifecycle
CloudWatchMetricSender implementation that internally uses a queue
to buffer MetricDatum values.| Constructor and Description |
|---|
BufferingCloudWatchMetricSender(String namespace,
int maxBuffer,
long fixedDelayBetweenRuns,
com.amazonaws.services.cloudwatch.AmazonCloudWatchAsync amazonCloudWatchAsync) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
long |
getFixedDelayBetweenRuns() |
int |
getMaxBuffer() |
String |
getNamespace() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
send(com.amazonaws.services.cloudwatch.model.MetricDatum metricDatum) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public BufferingCloudWatchMetricSender(String namespace, int maxBuffer, long fixedDelayBetweenRuns, com.amazonaws.services.cloudwatch.AmazonCloudWatchAsync amazonCloudWatchAsync)
public void send(com.amazonaws.services.cloudwatch.model.MetricDatum metricDatum)
send in interface CloudWatchMetricSenderpublic String getNamespace()
public int getMaxBuffer()
public long getFixedDelayBetweenRuns()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.