Package | Description |
---|---|
com.hazelcast.concurrent.semaphore |
This package contains ISemaphore functionality for Hazelcast.
The ISemaphore is the distributed version of the Semaphore . |
com.hazelcast.config |
Provides classes for configuring HazelcastInstance.
|
Constructor and Description |
---|
SemaphoreContainer(int partitionId,
SemaphoreConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
SemaphoreConfigReadOnly
Deprecated.
this class will be removed in 4.0; it is meant for internal usage only.
|
Modifier and Type | Method and Description |
---|---|
SemaphoreConfig |
Config.findSemaphoreConfig(String name)
Returns a read-only
ISemaphore
configuration for the given name. |
SemaphoreConfig |
Config.getSemaphoreConfig(String name)
Returns the SemaphoreConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
SemaphoreConfig |
SemaphoreConfigReadOnly.setAsyncBackupCount(int asyncBackupCount)
Deprecated.
|
SemaphoreConfig |
SemaphoreConfig.setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.
|
SemaphoreConfig |
SemaphoreConfigReadOnly.setBackupCount(int backupCount)
Deprecated.
|
SemaphoreConfig |
SemaphoreConfig.setBackupCount(int backupCount)
Sets the number of synchronous backups.
|
SemaphoreConfig |
SemaphoreConfigReadOnly.setInitialPermits(int initialPermits)
Deprecated.
|
SemaphoreConfig |
SemaphoreConfig.setInitialPermits(int initialPermits)
Sets the initial number of permits.
|
SemaphoreConfig |
SemaphoreConfigReadOnly.setName(String name)
Deprecated.
|
SemaphoreConfig |
SemaphoreConfig.setName(String name)
Sets the name of the semaphore.
|
SemaphoreConfig |
SemaphoreConfigReadOnly.setQuorumName(String quorumName)
Deprecated.
|
SemaphoreConfig |
SemaphoreConfig.setQuorumName(String quorumName) |
Modifier and Type | Method and Description |
---|---|
Collection<SemaphoreConfig> |
Config.getSemaphoreConfigs()
Returns the collection of
ISemaphore configs
added to this config object. |
Map<String,SemaphoreConfig> |
Config.getSemaphoreConfigsAsMap()
Returns the map of
ISemaphore configurations,
mapped by config name. |
Modifier and Type | Method and Description |
---|---|
Config |
Config.addSemaphoreConfig(SemaphoreConfig semaphoreConfig)
Adds the
ISemaphore configuration. |
Modifier and Type | Method and Description |
---|---|
Config |
Config.setSemaphoreConfigs(Map<String,SemaphoreConfig> semaphoreConfigs)
Sets the map of semaphore configurations, mapped by config name.
|
Constructor and Description |
---|
SemaphoreConfig(SemaphoreConfig config)
Creates a SemaphoreConfig by cloning another one.
|
SemaphoreConfigReadOnly(SemaphoreConfig config)
Deprecated.
|
Copyright © 2018 Hazelcast, Inc.. All rights reserved.