Interface ResourceStatistics

    • Method Detail

      • getResourceMethodExecutionStatistics

        ExecutionStatistics getResourceMethodExecutionStatistics()
        Get execution statistics that contain measurements of times only for execution of resource methods. Durations average time, minimum time and maximum time measure only time of execution of resource methods code. It does not involve other request processing phases.
        Returns:
        Execution statistics of all resource method in this resource.
      • getRequestExecutionStatistics

        ExecutionStatistics getRequestExecutionStatistics()
        Get execution statistics that contain measurements of times for whole processing from time when request comes into the Jersey application until the response is written to the underlying IO container. The statistics involves only requests that were matched to resource methods defined in getResourceMethodStatistics().
        Returns:
        Execution statistics of entire request processing for all resource method from this resource.
      • snapshot

        @Deprecated
        ResourceStatistics snapshot()
        Deprecated.
        implementing class is immutable hence snapshot creation is not needed anymore
        Get the immutable and consistent snapshot of the monitoring statistics. Working with snapshots might have negative performance impact as snapshot must be created but ensures consistency of data over time. However, the usage of snapshot is encouraged to avoid working with inconsistent data. Not all statistics must be updated in the same time on mutable version of statistics.
        Returns:
        Snapshot of resource statistics.