Class NamedExecutorService
java.lang.Object
com.oracle.coherence.concurrent.config.NamedExecutorService
A holder for a named
ExecutorService.- Since:
- 21.12
- Author:
- rl 11.20.21
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe description of thisExecutorService.protected final StringTheExecutorServicename.protected final Supplier<ExecutorService> TheSupplierto create theExecutorService. -
Constructor Summary
ConstructorsConstructorDescriptionNamedExecutorService(String sName, String sDescription, Supplier<ExecutorService> supplier) Constructs a newNamedExecutorService. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of thisExecutorService.TheExecutorServiceassociated withgetName().getName()Returns theExecutorServicename.
-
Field Details
-
f_sName
TheExecutorServicename. -
f_sDescription
The description of thisExecutorService. -
f_supplier
TheSupplierto create theExecutorService.
-
-
Constructor Details
-
NamedExecutorService
Constructs a newNamedExecutorService. This is a simple wrapper around an executor's logical name and a supplier that produces theExecutorServiceitself.- Parameters:
sName- the logicalExecutorServicenamesDescription- the description of theExecutorServicesupplier- theSupplierthat will produce theExecutorService
-
-
Method Details
-
getName
-
getDescription
Returns the description of thisExecutorService.- Returns:
- the description of this
ExecutorService
-
getExecutorService
TheExecutorServiceassociated withgetName().- Returns:
ExecutorServiceassociated withgetName()
-