Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
Class AsyncConfig.BuilderBase.AsyncConfigImpl
java.lang.Object
io.helidon.faulttolerance.AsyncConfig.BuilderBase.AsyncConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<Async>
,AsyncConfig
,Supplier<Async>
- Enclosing class:
AsyncConfig.BuilderBase<BUILDER extends AsyncConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends AsyncConfig>
protected static class AsyncConfig.BuilderBase.AsyncConfigImpl
extends Object
implements AsyncConfig, Supplier<Async>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.faulttolerance.AsyncConfig
AsyncConfig.Builder, AsyncConfig.BuilderBase<BUILDER extends AsyncConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends AsyncConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AsyncConfigImpl
(AsyncConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new instance of the runtime type from this config object.boolean
executor()
Executor service.Name of an executor service.get()
int
hashCode()
name()
Name for debugging, error reporting, monitoring.onStart()
A future that is completed when execution of the asynchronous task starts.toString()
-
Constructor Details
-
AsyncConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<Async>
- Returns:
- new configured runtime instance
-
get
-
name
Description copied from interface:AsyncConfig
Name for debugging, error reporting, monitoring.- Specified by:
name
in interfaceAsyncConfig
- Returns:
- name of this async
-
executorName
Description copied from interface:AsyncConfig
Name of an executor service. This is only honored when service registry is used.- Specified by:
executorName
in interfaceAsyncConfig
- Returns:
- name fo the
ExecutorService
to lookup - See Also:
-
executor
Description copied from interface:AsyncConfig
Executor service. Will be used to run the asynchronous tasks.- Specified by:
executor
in interfaceAsyncConfig
- Returns:
- explicit executor service
-
onStart
Description copied from interface:AsyncConfig
A future that is completed when execution of the asynchronous task starts.- Specified by:
onStart
in interfaceAsyncConfig
- Returns:
- future that will be completed by the asynchronous processing
-
toString
-
equals
-
hashCode
public int hashCode()
-