| Modifier and Type | Method and Description |
|---|---|
default void |
MetricsCollector.initMetrics(MetricsEvent event) |
| Modifier and Type | Method and Description |
|---|---|
MetricsEvent |
MetricsStatHandler.addApplication(String applicationName) |
MetricsEvent |
MetricsStatHandler.decrease(String applicationName,
Invocation invocation) |
MetricsEvent |
MetricsStatHandler.increase(String applicationName,
Invocation invocation) |
| Modifier and Type | Class and Description |
|---|---|
class |
MetricsInitEvent |
class |
TimeCounterEvent
Mark certain types of events, allow automatic recording of start and end times, and provide time pairs
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MetricsEventBus.after(MetricsEvent event,
Object result) |
static void |
MetricsEventBus.before(MetricsEvent event)
Applicable to the scene where execution and return are separated,
eventSaveRunner saves the event, so that the calculation rt is introverted
|
static void |
MetricsEventBus.error(MetricsEvent event) |
static <T> T |
MetricsEventBus.post(MetricsEvent event,
Supplier<T> targetSupplier)
Posts an event to all registered subscribers.
|
static <T> T |
MetricsEventBus.post(MetricsEvent event,
Supplier<T> targetSupplier,
Function<T,Boolean> trFunction)
Full lifecycle post, success and failure conditions can be customized
|
static void |
MetricsEventBus.publish(MetricsEvent event)
Posts an event to all registered subscribers and only once.
|
void |
SimpleMetricsEventMulticaster.publishEvent(MetricsEvent event) |
void |
MetricsEventMulticaster.publishEvent(MetricsEvent event) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMetricsListener<E extends MetricsEvent> |
interface |
MetricsListener<E extends MetricsEvent>
Metrics Listener.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractMetricsListener.isSupport(MetricsEvent event)
Whether to support the general determination of event points depends on the event type
|
boolean |
AbstractMetricsKeyListener.isSupport(MetricsEvent event)
The MetricsKey type determines whether events are supported
|
boolean |
MetricsListener.isSupport(MetricsEvent event) |
| Modifier and Type | Method and Description |
|---|---|
static void |
MetricsSupport.dec(MetricsKey metricsKey,
MetricsPlaceValue placeType,
MethodMetricsCollector<TimeCounterEvent> collector,
MetricsEvent event)
Dec method num
|
static void |
MetricsSupport.increment(MetricsKey metricsKey,
MetricsPlaceValue placeType,
MethodMetricsCollector<TimeCounterEvent> collector,
MetricsEvent event)
Incr method num
|
static void |
MetricsSupport.increment(MetricsKey metricsKey,
MetricsPlaceValue placeType,
ServiceMetricsCollector<TimeCounterEvent> collector,
MetricsEvent event)
Incr service num
|
static void |
MetricsSupport.init(MetricsKey metricsKey,
MetricsPlaceValue placeType,
MethodMetricsCollector<TimeCounterEvent> collector,
MetricsEvent event) |
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.