Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
Class TimeoutConfig.BuilderBase.TimeoutConfigImpl
java.lang.Object
io.helidon.faulttolerance.TimeoutConfig.BuilderBase.TimeoutConfigImpl
- All Implemented Interfaces:
- Prototype.Api,- Prototype.Factory<Timeout>,- TimeoutConfig,- Supplier<Timeout>
- Enclosing class:
- TimeoutConfig.BuilderBase<BUILDER extends TimeoutConfig.BuilderBase<BUILDER,- PROTOTYPE>, - PROTOTYPE extends TimeoutConfig> 
protected static class TimeoutConfig.BuilderBase.TimeoutConfigImpl
extends Object
implements TimeoutConfig, Supplier<Timeout>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.helidon.faulttolerance.TimeoutConfigTimeoutConfig.Builder, TimeoutConfig.BuilderBase<BUILDER extends TimeoutConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TimeoutConfig> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedTimeoutConfigImpl(TimeoutConfig.BuilderBase<?, ?> builder) Create an instance providing a builder.
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.booleanFlag to indicate that code must be executed in current thread instead of in an executor's thread.booleanFlag to enable metrics for this instance.booleanexecutor()Executor service to schedule the timeout.get()inthashCode()name()Name for debugging, error reporting, monitoring.timeout()Duration to wait before timing out.toString()
- 
Constructor Details- 
TimeoutConfigImplCreate an instance providing a builder.- Parameters:
- builder- extending builder base of this prototype
 
 
- 
- 
Method Details- 
buildDescription copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
- buildin interface- Prototype.Factory<Timeout>
- Returns:
- new configured runtime instance
 
- 
get
- 
nameDescription copied from interface:TimeoutConfigName for debugging, error reporting, monitoring.- Specified by:
- namein interface- TimeoutConfig
- Returns:
- name of this timeout
 
- 
timeoutDescription copied from interface:TimeoutConfigDuration to wait before timing out. Defaults to10 seconds.- Specified by:
- timeoutin interface- TimeoutConfig
- Returns:
- timeout
 
- 
currentThreadpublic boolean currentThread()Description copied from interface:TimeoutConfigFlag to indicate that code must be executed in current thread instead of in an executor's thread. This flag isfalseby default.- Specified by:
- currentThreadin interface- TimeoutConfig
- Returns:
- whether to execute on current thread (true), or in an executor service (false})
 
- 
executorDescription copied from interface:TimeoutConfigExecutor service to schedule the timeout.- Specified by:
- executorin interface- TimeoutConfig
- Returns:
- executor service to use
 
- 
enableMetricspublic boolean enableMetrics()Description copied from interface:TimeoutConfigFlag to enable metrics for this instance. The value of this flag is combined with the global config entryFaultTolerance.FT_METRICS_DEFAULT_ENABLED. If either of these flags istrue, then metrics will be enabled for the instance.- Specified by:
- enableMetricsin interface- TimeoutConfig
- Returns:
- metrics enabled flag
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-