Package com.hazelcast.config.cp
Class SemaphoreConfig
java.lang.Object
com.hazelcast.config.cp.SemaphoreConfig
Contains configuration options for CP 
ISemaphore- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDefault value for the initial permit count of Semaphores.static final booleanThe default value for the JDK compatibility mode of CPISemaphore
- 
Constructor SummaryConstructorsConstructorDescriptionSemaphoreConfig(String name) SemaphoreConfig(String name, boolean jdkCompatible, int initialPermits) 
- 
Method SummaryModifier and TypeMethodDescriptionintReturns initial permit count of the SemaphoregetName()Returns the name of CP ISemaphorebooleanReturns true if CP ISemaphore is compatible with its JDK counterpartsetInitialPermits(int initialPermits) Sets initial permit count of the SemaphoresetJDKCompatible(boolean jdkCompatible) Sets JDK compatibility mode of CP ISemaphoreSets the name of CP ISemaphoretoString()
- 
Field Details- 
DEFAULT_SEMAPHORE_JDK_COMPATIBILITYpublic static final boolean DEFAULT_SEMAPHORE_JDK_COMPATIBILITYThe default value for the JDK compatibility mode of CPISemaphore- See Also:
 
- 
DEFAULT_INITIAL_PERMITSpublic static final int DEFAULT_INITIAL_PERMITSDefault value for the initial permit count of Semaphores.- See Also:
 
 
- 
- 
Constructor Details- 
SemaphoreConfigpublic SemaphoreConfig()
- 
SemaphoreConfig
- 
SemaphoreConfig
 
- 
- 
Method Details- 
getNameReturns the name of CP ISemaphore
- 
setNameSets the name of CP ISemaphore
- 
isJDKCompatiblepublic boolean isJDKCompatible()Returns true if CP ISemaphore is compatible with its JDK counterpart
- 
setJDKCompatibleSets JDK compatibility mode of CP ISemaphore
- 
getInitialPermitspublic int getInitialPermits()Returns initial permit count of the Semaphore
- 
setInitialPermitsSets initial permit count of the Semaphore
- 
toString
 
-