@Contract @ConstrainedTo(value=SERVER) public interface MonitoringStatisticsListener
MonitoringStatisticsListener
will be called and new statistics will be passed.
Statistics are calculated in irregular undefined intervals.
The provider must not throw any exception.
The implementation of this interface can be registered as a standard Jersey/JAX-RS provider
by annotating with @Provider
annotation in the case of
class path scanning, by registering as a provider using ResourceConfig
or by returning from Application.getClasses()
or Application.getSingletons()
}. The provider can be registered only on the server
side.
DestroyListener
Modifier and Type | Method and Description |
---|---|
void |
onStatistics(MonitoringStatistics statistics)
The method is called when new statistics are available and statistics are passed as an argument.
|
void onStatistics(MonitoringStatistics statistics)
statistics
- Newly calculated monitoring statistics.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.