Class CachedBuilder
java.lang.Object
com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder<NamedExecutorService>
com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder<NamedExecutorService>
com.oracle.coherence.concurrent.config.builders.CachedBuilder
- All Implemented Interfaces:
ParameterizedBuilder<NamedExecutorService>
A
ParameterizedBuilder for constructing a NamedExecutorService
wrapper that will construct a cached thread pool.- Since:
- 21.12
- Author:
- rl 11.26.21
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport -
Field Summary
Fields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder
m_bldrFields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
m_name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringdescription(ThreadFactory factory) Creates the description for this executor.realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.Methods inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder
instantiateNamedThreadFactory, instantiateThreadFactory, setInstanceBuilderMethods inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
register, setName
-
Constructor Details
-
CachedBuilder
public CachedBuilder()
-
-
Method Details
-
realize
public NamedExecutorService realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) Description copied from interface:ParameterizedBuilderRealizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.- Parameters:
resolver- theParameterResolverfor resolving namedParametersloader- theClassLoaderfor loading any necessary classes and ifnulltheClassLoaderused to load the builder will be used insteadlistParameters- an optionalParameterList(may benull) to be used for realizing the instance, eg: used as constructor parameters- Returns:
- an instance of T
-
description
Creates the description for this executor.- Parameters:
factory- theThreadFactory, if any- Returns:
- the description for this executor
-