Class ExceptionMapperStatisticsImpl.Builder
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.ExceptionMapperStatisticsImpl.Builder
- Enclosing class:
ExceptionMapperStatisticsImpl
Builder of exception mapper statistics.
This builder does not need to be threadsafe since it's called only from the jersey-background-task-scheduler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ExceptionMapperStatisticsImpl
private long
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addExceptionMapperExecution
(Class<?> mapper, int count) Add an execution of exception mapper.(package private) void
addMapping
(boolean success, int count) Add mappings.build()
Build an instance of exception mapper statistics.
-
Field Details
-
exceptionMapperExecutionCountMap
-
successfulMappings
private long successfulMappings -
unsuccessfulMappings
private long unsuccessfulMappings -
totalMappings
private long totalMappings -
cached
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
addMapping
void addMapping(boolean success, int count) Add mappings.- Parameters:
success
- True if mappings were successful.count
- Number of mappings.
-
addExceptionMapperExecution
Add an execution of exception mapper.- Parameters:
mapper
- Exception mapper.count
- Number of executions of themapper
.
-
build
Build an instance of exception mapper statistics.- Returns:
- New instance of exception mapper statistics.
-