public class SemaphoreConfigReadOnly extends SemaphoreConfig
DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_SYNC_BACKUP_COUNT
Constructor and Description |
---|
SemaphoreConfigReadOnly(SemaphoreConfig config)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SemaphoreConfig |
setAsyncBackupCount(int asyncBackupCount)
Deprecated.
Sets the number of asynchronous backups.
|
SemaphoreConfig |
setBackupCount(int backupCount)
Deprecated.
Sets the number of synchronous backups.
|
SemaphoreConfig |
setInitialPermits(int initialPermits)
Deprecated.
Sets the initial number of permits.
|
SemaphoreConfig |
setName(String name)
Deprecated.
Sets the name of the semaphore.
|
SemaphoreConfig |
setQuorumName(String quorumName)
Deprecated.
|
equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getFactoryId, getId, getInitialPermits, getName, getQuorumName, getTotalBackupCount, hashCode, readData, toString, writeData
public SemaphoreConfigReadOnly(SemaphoreConfig config)
public SemaphoreConfig setName(String name)
SemaphoreConfig
setName
in interface NamedConfig
setName
in class SemaphoreConfig
name
- the name of the semaphorepublic SemaphoreConfig setInitialPermits(int initialPermits)
SemaphoreConfig
setInitialPermits
in class SemaphoreConfig
initialPermits
- the initial number of permitspublic SemaphoreConfig setBackupCount(int backupCount)
SemaphoreConfig
setBackupCount
in class SemaphoreConfig
backupCount
- the number of synchronous backups to setSemaphoreConfig.setAsyncBackupCount(int)
,
SemaphoreConfig.getBackupCount()
public SemaphoreConfig setAsyncBackupCount(int asyncBackupCount)
SemaphoreConfig
setAsyncBackupCount
in class SemaphoreConfig
asyncBackupCount
- the number of asynchronous synchronous backups to setSemaphoreConfig.setBackupCount(int)
,
SemaphoreConfig.getAsyncBackupCount()
public SemaphoreConfig setQuorumName(String quorumName)
setQuorumName
in class SemaphoreConfig
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.