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 ExceptionMapperStatisticsImplprivate longprivate longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddExceptionMapperExecution(Class<?> mapper, int count) Add an execution of exception mapper.(package private) voidaddMapping(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.
-