static class ExceptionMapperStatisticsImpl.Builder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private ExceptionMapperStatisticsImpl |
cached |
private java.util.Map<java.lang.Class<?>,java.lang.Long> |
exceptionMapperExecutionCountMap |
private long |
successfulMappings |
private long |
totalMappings |
private long |
unsuccessfulMappings |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addExceptionMapperExecution(java.lang.Class<?> mapper,
int count)
Add an execution of exception mapper.
|
(package private) void |
addMapping(boolean success,
int count)
Add mappings.
|
ExceptionMapperStatisticsImpl |
build()
Build an instance of exception mapper statistics.
|
private java.util.Map<java.lang.Class<?>,java.lang.Long> exceptionMapperExecutionCountMap
private long successfulMappings
private long unsuccessfulMappings
private long totalMappings
private ExceptionMapperStatisticsImpl cached
void addMapping(boolean success,
int count)
success - True if mappings were successful.count - Number of mappings.void addExceptionMapperExecution(java.lang.Class<?> mapper,
int count)
mapper - Exception mapper.count - Number of executions of the mapper.public ExceptionMapperStatisticsImpl build()