public interface MetricsStoreProvider
Modifier and Type | Method and Description |
---|---|
void |
close()
Close connection and release associated resources.
|
void |
connect()
Connect or verify connection to metrics store.
|
void |
init(AppMetricsConfig config)
Initialize resources with design-time configuration properties.
|
void |
publish(java.util.Iterator iterator)
Iterate and publish each
MetricRecord to the target store. |
void |
reconnectOnError(java.lang.Exception e)
Reconnect metrics store on error while publishing metric.
|
void init(AppMetricsConfig config)
config
- AppMetricsConfig
java.lang.Exception
void connect()
java.lang.Exception
void reconnectOnError(java.lang.Exception e)
Exception
- java.lang.Exception
void publish(java.util.Iterator iterator)
MetricRecord
to the target store. The implementations
should use an store specific client to publish each record individually or as
a batch.iterator
- - MetricRecord iterator.java.lang.Exception
void close()
java.lang.Exception