Package org.apache.juneau.rest.stats
Class ThrownStats.Builder
java.lang.Object
org.apache.juneau.rest.stats.ThrownStats.Builder
- Enclosing class:
ThrownStats
Builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a newThrownStats
using this builder.causedBy
(ThrownStats value) Specifies the caused-by exception.hash
(long value) Specifies the calculated hash.stackTrace
(List<String> value) Specifies the normalized stacktrace.Specifies the thrown exception.type
(Class<? extends ThrownStats> value) Specifies a subclass ofThrownStats
to create when thebuild()
method is called.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore
- The bean store to use for creating beans.
-
-
Method Details
-
build
Create a newThrownStats
using this builder.- Returns:
- A new
ThrownStats
-
type
Specifies a subclass ofThrownStats
to create when thebuild()
method is called.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
throwable
Specifies the thrown exception.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
hash
Specifies the calculated hash.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
stackTrace
Specifies the normalized stacktrace.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-
causedBy
Specifies the caused-by exception.- Parameters:
value
- The new value for this setting.- Returns:
- This object.
-