Class MethodExecStore.Builder
java.lang.Object
org.apache.juneau.rest.server.stats.MethodExecStore.Builder
- Enclosing class:
- MethodExecStore
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bean store.build()Creates the bean.Overrides the bean returned by thebuild()method with a pre-instantiated instance.statsImplClass(Class<? extends MethodExecStats> value) Specifies a subclass ofMethodExecStatsto use for individual method statistics.thrownStore(ThrownStore value) Specifies the store to use for gathering statistics on thrown exceptions.thrownStoreOnce(ThrownStore value) Same asthrownStore(ThrownStore)but only sets the new value if the current value isnull .Overrides the bean type produced by thebuild()method.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore- The bean store to use for creating beans.
-
-
Method Details
-
beanStore
Returns the bean store.- Returns:
- The bean store.
-
impl
Overrides the bean returned by thebuild()method with a pre-instantiated instance. -
statsImplClass
Specifies a subclass ofMethodExecStatsto use for individual method statistics.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
thrownStore
Specifies the store to use for gathering statistics on thrown exceptions.Can be used to capture thrown exception stats across multiple
MethodExecStoreobjects.If not specified, one will be created by default for the
MethodExecStoreobject.- Parameters:
value- The store to use for gathering statistics on thrown exceptions.- Returns:
- This object.
-
thrownStoreOnce
Same asthrownStore(ThrownStore)but only sets the new value if the current value isnull .- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
type
Overrides the bean type produced by thebuild()method.- Parameters:
value- The setting value. Can benull (defaults toMethodExecStore).- Returns:
- This object.
-
build
Creates the bean.- Returns:
- A new bean.
-