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