Package com.hazelcast.config.cp
Class SemaphoreConfig
java.lang.Object
com.hazelcast.config.cp.SemaphoreConfig
Contains configuration options for CP
ISemaphore
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default value for the initial permit count of Semaphores.static final boolean
The default value for the JDK compatibility mode of CPISemaphore
-
Constructor Summary
ConstructorDescriptionSemaphoreConfig
(String name) SemaphoreConfig
(String name, boolean jdkCompatible, int initialPermits) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns initial permit count of the SemaphoregetName()
Returns the name of CP ISemaphoreboolean
Returns 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_COMPATIBILITY
public static final boolean DEFAULT_SEMAPHORE_JDK_COMPATIBILITYThe default value for the JDK compatibility mode of CPISemaphore
- See Also:
-
DEFAULT_INITIAL_PERMITS
public static final int DEFAULT_INITIAL_PERMITSDefault value for the initial permit count of Semaphores.- See Also:
-
-
Constructor Details
-
SemaphoreConfig
public SemaphoreConfig() -
SemaphoreConfig
-
SemaphoreConfig
-
-
Method Details
-
getName
Returns the name of CP ISemaphore -
setName
Sets the name of CP ISemaphore -
isJDKCompatible
public boolean isJDKCompatible()Returns true if CP ISemaphore is compatible with its JDK counterpart -
setJDKCompatible
Sets JDK compatibility mode of CP ISemaphore -
getInitialPermits
public int getInitialPermits()Returns initial permit count of the Semaphore -
setInitialPermits
Sets initial permit count of the Semaphore -
toString
-