public abstract class Producer
extends java.lang.Object
Producer abstraction for creating custom metric and event producers.
The implementation class should accept a Backends
parameter, which can be used to add custom metrics and events to be reported to all configured
backends.
Config can be accessed using backends.getConfig(). Loggers can be
created using backends.getLoggingProvider().get(<class or name>). Any other classes or
resources will need to be accessed statically.
| Constructor and Description |
|---|
Producer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
stop()
Lifecycle method called when the Cinnamon
Backends are
stopped, to enable cleanup of any resources acquired by the producer. |
public abstract void stop()
Backends are
stopped, to enable cleanup of any resources acquired by the producer.Cinnamon API. Copyright (c) 2015–2021 Lightbend.