public class SemaphoreConfig extends Object
ISemaphore
Modifier and Type | Field and 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 CP
ISemaphore |
Constructor and Description |
---|
SemaphoreConfig() |
SemaphoreConfig(String name) |
SemaphoreConfig(String name,
boolean jdkCompatible,
int initialPermits) |
Modifier and Type | Method and Description |
---|---|
int |
getInitialPermits()
Returns initial permit count of the Semaphore
|
String |
getName()
Returns the name of CP ISemaphore
|
boolean |
isJDKCompatible()
Returns true if CP ISemaphore is compatible with
its JDK counterpart
|
SemaphoreConfig |
setInitialPermits(int initialPermits)
Sets initial permit count of the Semaphore
|
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 static final int DEFAULT_INITIAL_PERMITS
public SemaphoreConfig()
public SemaphoreConfig(String name)
public SemaphoreConfig(String name, boolean jdkCompatible, int initialPermits)
public String getName()
public SemaphoreConfig setName(String name)
public boolean isJDKCompatible()
public SemaphoreConfig setJDKCompatible(boolean jdkCompatible)
public int getInitialPermits()
public SemaphoreConfig setInitialPermits(int initialPermits)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.