public interface ISink
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetricsContext context)
Accept MetricsContext to sink to CloudWatch.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
shutdown()
Shutdown the sink.
|
void accept(MetricsContext context)
context - MetricsContextjava.util.concurrent.CompletableFuture<java.lang.Void> shutdown()
CompletableFuture will be completed when all queued
events have been flushed. After this is called, no more metrics can be sent through this sink
and attempting to continue to re-use the sink will result in undefined behavior.