Class ConsoleSink
- java.lang.Object
-
- software.amazon.cloudwatchlogs.emf.sinks.ConsoleSink
-
-
Constructor Summary
Constructors Constructor Description ConsoleSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MetricsContext context)Accept MetricsContext to sink to CloudWatch.java.util.concurrent.CompletableFuture<java.lang.Void>shutdown()Shutdown the sink.
-
-
-
Method Detail
-
accept
public void accept(MetricsContext context)
Description copied from interface:ISinkAccept MetricsContext to sink to CloudWatch.
-
shutdown
public java.util.concurrent.CompletableFuture<java.lang.Void> shutdown()
Description copied from interface:ISinkShutdown the sink. The returnedCompletableFuturewill 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.
-
-