public interface ExceptionMapperStatistics
exception mapper
executions.
Statistics retrieved from Jersey runtime might be mutable and thanks to it might provide inconsistent data
as not all statistics are updated in the same time. To retrieve the immutable and consistent
statistics data the method snapshot()
should be used.See monitoring statistics for general details about statistics.
Modifier and Type | Method and Description |
---|---|
Map<Class<?>,Long> |
getExceptionMapperExecutions()
Get the count of exception mapper executions.
|
long |
getSuccessfulMappings()
Get count of all successful exception mappings.
|
long |
getTotalMappings()
Get count of exception mappings that were performed on exceptions.
|
long |
getUnsuccessfulMappings()
Get count of all unsuccessful exception mappings.
|
ExceptionMapperStatistics |
snapshot()
Deprecated.
implementing class is immutable hence snapshot creation is not needed anymore
|
Map<Class<?>,Long> getExceptionMapperExecutions()
classes
of exception mappers
and corresponding execution count
as values. One execution of exception mapper is one call
of ExceptionMapper.toResponse(Throwable)
method.long getSuccessfulMappings()
exception mapper
returns an valid response
(even if response contains non-successful response status code).long getUnsuccessfulMappings()
exception mapper
is not found, or is found but throws
exception.long getTotalMappings()
@Deprecated ExceptionMapperStatistics snapshot()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.