library/src/main/java/com/kdgregory/aws/utils/cloudwatch/MetricReporter.java
/**
     *  Flushes the current list of queued metrics. Makes a best attempt to
     *  clear the queue, breaking it into as many separate SDK calls as
     *  needed. Will log a warning and leave messages in the queu if unable
     *  to send.
     */
Flushes the current list of queued metrics. Makes a best attempt to
clear the queue, breaking it into as many separate SDK calls as
needed. Will log a warning and leave messages in the queu if unable
to send.
Flushes the current list of queued metrics . Makes a best attempt to clear the queue breaking it into as many separate SDK calls as needed . Will log a warning and leave messages in the queu if unable to send .
public synchronized void flush()
    {
        if (queuedMetrics.isEmpty())
        {
            if (batchLoggingLevel != LoggingLevel.NONE)
            {
                logger.debug(namespace + ": flush called with empty queue");
            }
            return;
        }
        while (! queuedMetrics.isEmpty())
        {
            List<MetricDatum> batch = buildBatch();
            sendBatch(batch);
        }
    }
public synchronized void flush ( ) { if ( queuedMetrics . isEmpty ( ) ) { if ( batchLoggingLevel != LoggingLevel . NONE ) { logger . debug ( namespace + ": flush called with empty queue" ) ; } return ; } while ( ! queuedMetrics . isEmpty ( ) ) { List < MetricDatum > batch = buildBatch ( ) ; sendBatch ( batch ) ; } }
Flushes the current list of queued metrics.
Flushes the current list of queued metrics .