Package com.lightbend.cinnamon.akka
Class CinnamonMetrics
- java.lang.Object
-
- com.lightbend.cinnamon.akka.CinnamonMetricsFactory
-
- com.lightbend.cinnamon.akka.CinnamonMetrics
-
- All Implemented Interfaces:
akka.actor.Extension
public abstract class CinnamonMetrics extends CinnamonMetricsFactory implements akka.actor.Extension
Akka (classic) Extension that provides a Cinnamon metrics API for custom metrics.
-
-
Constructor Summary
Constructors Constructor Description CinnamonMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CinnamonMetricsapply(akka.actor.ActorContext context)static CinnamonMetricscreateExtension(akka.actor.ExtendedActorSystem system)static booleanequals(java.lang.Object other)static CinnamonMetricsget(akka.actor.ActorContext context)static CinnamonMetricsget(akka.actor.ActorSystem system)static inthashCode()static akka.actor.ExtensionId<CinnamonMetrics>lookup()abstract CinnamonMetricsmetricsFor(akka.actor.ActorRef actorRef)Get CinnamonMetrics API scoped to a particular actor.abstract CinnamonMetricsmetricsFor(Identity identity)Get CinnamonMetrics API scoped to a particular identity.abstract CinnamonMetricsmetricsForApplication()Get CinnamonMetrics API scoped to the application.abstract CinnamonMetricsmetricsForSystem()Get CinnamonMetrics API scoped to the actor system.-
Methods inherited from class com.lightbend.cinnamon.akka.CinnamonMetricsFactory
createCounter, createCounter, createCounter, createCounter, createCounter, createCounter, createCounter, createCounter, createGaugeDouble, createGaugeDouble, createGaugeDouble, createGaugeDouble, createGaugeDouble, createGaugeDouble, createGaugeDouble, createGaugeDouble, createGaugeLong, createGaugeLong, createGaugeLong, createGaugeLong, createGaugeLong, createGaugeLong, createGaugeLong, createGaugeLong, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeDouble, createProvidingGaugeLong, createProvidingGaugeLong, createProvidingGaugeLong, createProvidingGaugeLong, createProvidingGaugeLong, createProvidingGaugeLong, createProvidingGaugeLong, createProvidingGaugeLong, createRate, createRate, createRate, createRate, createRate, createRate, createRate, createRate, createRecorder, createRecorder, createRecorder, createRecorder, createRecorder, createRecorder, createRecorder, createRecorder, createTimer, createTimer, createTimer, createTimer, createTimer, createTimer, createTimer, createTimer
-
-
-
-
Method Detail
-
createExtension
public static CinnamonMetrics createExtension(akka.actor.ExtendedActorSystem system)
-
apply
public static CinnamonMetrics apply(akka.actor.ActorContext context)
-
lookup
public static akka.actor.ExtensionId<CinnamonMetrics> lookup()
-
get
public static CinnamonMetrics get(akka.actor.ActorSystem system)
-
get
public static CinnamonMetrics get(akka.actor.ActorContext context)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
metricsFor
public abstract CinnamonMetrics metricsFor(akka.actor.ActorRef actorRef)
Get CinnamonMetrics API scoped to a particular actor.- Parameters:
actorRef- the actor to create actor-level custom metrics- Returns:
- CinnamonMetrics scoped to the given actor
-
metricsForSystem
public abstract CinnamonMetrics metricsForSystem()
Get CinnamonMetrics API scoped to the actor system.- Returns:
- CinnamonMetrics scoped to the actor system
-
metricsForApplication
public abstract CinnamonMetrics metricsForApplication()
Get CinnamonMetrics API scoped to the application.- Returns:
- CinnamonMetrics scoped to the application
-
metricsFor
public abstract CinnamonMetrics metricsFor(Identity identity)
Get CinnamonMetrics API scoped to a particular identity.- Parameters:
identity- the identity to create custom metrics for- Returns:
- CinnamonMetrics scoped to the given identity
-
-