@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) @Inherited public @interface AppStat
IStats.Counter
A primitive long value which is treated as a counterIStats.Latencies
A latency statIStats.Gauge
A gauge stat which is sampled for an instantaneous value.
If the field is discovered by a Talon Server during startup, the stat will be registered with
the application's AepEngine
, and will be included in the App's user stats in server
heartbeats.
NOTE: The field instance is introspected just after the AepEngine
is injected into
the application, prior to the initialize method being called. The value of the field at that
time must be non-null for the statistic to be registered. The annotated statistic instance
cannot be changed after initialization.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
gauge
When true the field or method is treated as returning a gauge value.
|
String |
name
When this App stat is annotating a field or method that is treated as a
IStats.Gauge specifis the name of the gauge. |
public abstract boolean gauge
Note that annotating a method that returns a primitive value is not zero garbage because autoboxing occurs when the the method is invoked via reflection.
public abstract String name
IStats.Gauge
specifis the name of the gauge.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.