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 AsyncConfig
AsyncConfig.Builder, AsyncConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forAsync.static classAsyncConfig.BuilderBase<BUILDER extends AsyncConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AsyncConfig>Fluent API builder base forAsyncConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAsyncConfigImpl(AsyncConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.booleanexecutor()Executor service.Name of an executor service.get()inthashCode()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
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<Async>- Returns:
- new configured runtime instance
-
get
-
name
Description copied from interface:AsyncConfigName for debugging, error reporting, monitoring.- Specified by:
namein interfaceAsyncConfig- Returns:
- name of this async
-
executorName
Description copied from interface:AsyncConfigName of an executor service. This is only honored when service registry is used.- Specified by:
executorNamein interfaceAsyncConfig- Returns:
- name fo the
ExecutorServiceto lookup - See Also:
-
executor
Description copied from interface:AsyncConfigExecutor service. Will be used to run the asynchronous tasks.- Specified by:
executorin interfaceAsyncConfig- Returns:
- explicit executor service
-
onStart
Description copied from interface:AsyncConfigA future that is completed when execution of the asynchronous task starts.- Specified by:
onStartin interfaceAsyncConfig- Returns:
- future that will be completed by the asynchronous processing
-
toString
-
equals
-
hashCode
-