Package org.apache.juneau.rest.stats
Class MethodExecStore.Builder
- Enclosing class:
- MethodExecStore
Builder class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected MethodExecStoreCreates the bean when the bean type isnull or is the default value.Overrides the bean returned by theBeanBuilder.build()method.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 theBeanBuilder.build()method.
- 
Constructor Details- 
BuilderConstructor.- Parameters:
- beanStore- The bean store to use for creating beans.
 
 
- 
- 
Method Details- 
buildDefaultDescription copied from class:BeanBuilderCreates the bean when the bean type isnull or is the default value.- Overrides:
- buildDefaultin class- BeanBuilder<MethodExecStore>
- Returns:
- A new bean.
 
- 
statsImplClassSpecifies a subclass ofMethodExecStatsto use for individual method statistics.- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
thrownStoreSpecifies 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.
 
- 
thrownStoreOnceSame asthrownStore(ThrownStore)but only sets the new value if the current value isnull .- Parameters:
- value- The new value for this setting.
- Returns:
- This object.
 
- 
implDescription copied from class:BeanBuilderOverrides the bean returned by theBeanBuilder.build()method.Use this method if you want this builder to return an already-instantiated bean. - Overrides:
- implin class- BeanBuilder<MethodExecStore>
- Parameters:
- value- The setting value.
- Returns:
- This object.
 
- 
typeDescription copied from class:BeanBuilderOverrides the bean type produced by theBeanBuilder.build()method.Use this method if you want to instantiated a bean subclass. - Overrides:
- typein class- BeanBuilder<MethodExecStore>
- Parameters:
- value- The setting value.
- Returns:
- This object.
 
 
-