Package com.hazelcast.config.cp
Class SemaphoreConfig
java.lang.Object
com.hazelcast.config.cp.SemaphoreConfig
public class SemaphoreConfig extends Object
Contains configuration options for CP
ISemaphore
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_INITIAL_PERMITS
Default value for the initial permit count of Semaphores.static boolean
DEFAULT_SEMAPHORE_JDK_COMPATIBILITY
The default value for the JDK compatibility mode of CPISemaphore
-
Constructor Summary
Constructors Constructor Description SemaphoreConfig()
SemaphoreConfig(String name)
SemaphoreConfig(String name, boolean jdkCompatible, int initialPermits)
-
Method Summary
Modifier and Type Method Description int
getInitialPermits()
Returns initial permit count of the SemaphoreString
getName()
Returns the name of CP ISemaphoreboolean
isJDKCompatible()
Returns true if CP ISemaphore is compatible with its JDK counterpartSemaphoreConfig
setInitialPermits(int initialPermits)
Sets initial permit count of the SemaphoreSemaphoreConfig
setJDKCompatible(boolean jdkCompatible)
Sets JDK compatibility mode of CP ISemaphoreSemaphoreConfig
setName(String name)
Sets the name of CP ISemaphoreString
toString()
-
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:
- Constant Field Values
-
DEFAULT_INITIAL_PERMITS
public static final int DEFAULT_INITIAL_PERMITSDefault value for the initial permit count of Semaphores.- See Also:
- Constant Field Values
-
-
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
-