public class CPSemaphoreConfig extends Object
ISemaphore
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SEMAPHORE_JDK_COMPATIBILITY
Default value for JDK compatibility mode of the CP
ISemaphore |
Constructor and Description |
---|
CPSemaphoreConfig() |
CPSemaphoreConfig(String name) |
CPSemaphoreConfig(String name,
boolean jdkCompatible) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns name of the CP semaphore
|
boolean |
isJDKCompatible()
Returns true if the CP
ISemaphore is compatible with
its JDK counterpart |
CPSemaphoreConfig |
setJDKCompatible(boolean jdkCompatible)
Sets JDK compatibility mode of the CP
ISemaphore |
CPSemaphoreConfig |
setName(String name)
Sets name of the semaphore
|
String |
toString() |
public static final boolean DEFAULT_SEMAPHORE_JDK_COMPATIBILITY
ISemaphore
public CPSemaphoreConfig()
public CPSemaphoreConfig(String name)
public CPSemaphoreConfig(String name, boolean jdkCompatible)
public String getName()
public CPSemaphoreConfig setName(String name)
public boolean isJDKCompatible()
ISemaphore
is compatible with
its JDK counterpartpublic CPSemaphoreConfig setJDKCompatible(boolean jdkCompatible)
ISemaphore
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.