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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a newThrownStatsusing 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 ofThrownStatsto 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 newThrownStatsusing this builder.- Returns:
- A new
ThrownStats
-
causedBy
Specifies the caused-by 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.
-
throwable
Specifies the thrown exception.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
type
Specifies a subclass ofThrownStatsto create when thebuild()method is called.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-