Interface ISink

    • Method Detail

      • accept

        void accept​(MetricsContext context)
        Accept MetricsContext to sink to CloudWatch.
        Parameters:
        context - MetricsContext
      • shutdown

        java.util.concurrent.CompletableFuture<java.lang.Void> shutdown()
        Shutdown the sink. The returned 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.
        Returns:
        a future that completes when the shutdown has completed successfully and all pending messages have been sent to the destination.