Class ConcurrentConfiguration
- java.lang.Object
-
- com.oracle.coherence.concurrent.config.ConcurrentConfiguration
-
public final class ConcurrentConfiguration extends Object
A simple holder for the parsing result of ancoherence-concurrentconfiguration artifacts.- Since:
- 21.12
- Author:
- rl 11.20.21
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNamedExecutorService(NamedExecutorService service)Add the specifiedNamedExecutorServiceand register it with the localClusteredExecutorService.static ConcurrentConfigurationget()Return theConcurrentConfigurationfor this VM.NamedExecutorServicegetNamedExecutorService(String sName)Returns theNamedExecutorServicefor the given name, if any.List<NamedExecutorService>getNamedExecutorServices()Return thelistof parsedNamedExecutorServices.booleanisExecutorNameRegistered(String sName)Returntrueif the specific name has an executor associated with it.voidreset()Reset the ConcurrentConfiguration to it's initial state.voidsetExecutorService(ClusteredExecutorService executorService)Sets the localClusteredExecutorServicewith whichNamedExecutorServicewill be registered with.
-
-
-
Method Detail
-
getNamedExecutorServices
public List<NamedExecutorService> getNamedExecutorServices()
Return thelistof parsedNamedExecutorServices.- Returns:
- the
listof parsedNamedExecutorServices
-
getNamedExecutorService
public NamedExecutorService getNamedExecutorService(String sName)
Returns theNamedExecutorServicefor the given name, if any.- Parameters:
sName- the name of theNamedExecutorService- Returns:
- the
NamedExecutorServicefor the given name, if any - Throws:
NullPointerException- ifsNameisnull
-
setExecutorService
public void setExecutorService(ClusteredExecutorService executorService)
Sets the localClusteredExecutorServicewith whichNamedExecutorServicewill be registered with.- Parameters:
executorService- the localClusteredExecutorServicewith whichNamedExecutorServicewill be registered with- Throws:
NullPointerException- ifexecutorServiceisnull
-
reset
public void reset()
Reset the ConcurrentConfiguration to it's initial state.
-
addNamedExecutorService
public void addNamedExecutorService(NamedExecutorService service)
Add the specifiedNamedExecutorServiceand register it with the localClusteredExecutorService.- Parameters:
service- theNamedExecutorServiceto add- Throws:
IllegalArgumentException- if an executor has already been registered with the same nameNullPointerException- ifserviceisnull
-
isExecutorNameRegistered
public boolean isExecutorNameRegistered(String sName)
Returntrueif the specific name has an executor associated with it.- Parameters:
sName- the name to verify- Returns:
trueif the specific name has an executor associated with it- Throws:
NullPointerException- ifsNameis null
-
get
public static ConcurrentConfiguration get()
Return theConcurrentConfigurationfor this VM.- Returns:
- the
ConcurrentConfigurationfor this VM
-
-