Class NamedExecutorService
- java.lang.Object
-
- com.oracle.coherence.concurrent.config.NamedExecutorService
-
public class NamedExecutorService extends Object
A holder for a namedExecutorService.- Since:
- 21.12
- Author:
- rl 11.20.21
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringf_sDescriptionThe description of thisExecutorService.protected Stringf_sNameTheExecutorServicename.protected Supplier<ExecutorService>f_supplierTheSupplierto create theExecutorService.
-
Constructor Summary
Constructors Constructor Description NamedExecutorService(String sName, String sDescription, Supplier<ExecutorService> supplier)Constructs a newNamedExecutorService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns the description of thisExecutorService.ExecutorServicegetExecutorService()TheExecutorServiceassociated withgetName().StringgetName()Returns theExecutorServicename.
-
-
-
Field Detail
-
f_sName
protected final String f_sName
TheExecutorServicename.
-
f_sDescription
protected final String f_sDescription
The description of thisExecutorService.
-
f_supplier
protected final Supplier<ExecutorService> f_supplier
TheSupplierto create theExecutorService.
-
-
Constructor Detail
-
NamedExecutorService
public NamedExecutorService(String sName, String sDescription, Supplier<ExecutorService> supplier)
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 Detail
-
getName
public String getName()
Returns theExecutorServicename.- Returns:
- the
ExecutorServicename
-
getDescription
public String getDescription()
Returns the description of thisExecutorService.- Returns:
- the description of this
ExecutorService
-
getExecutorService
public ExecutorService getExecutorService()
TheExecutorServiceassociated withgetName().- Returns:
ExecutorServiceassociated withgetName()
-
-