Interface ISink
-
- All Known Implementing Classes:
AgentSink,ConsoleSink,MultiSink
public interface ISinkInterface for sinking log items to CloudWatch.
-
-
Method Summary
All Methods Instance Methods Abstract 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
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 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.- Returns:
- a future that completes when the shutdown has completed successfully and all pending messages have been sent to the destination.
-
-