public class SemaphoreConfigReadOnly extends SemaphoreConfig
DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_SYNC_BACKUP_COUNT
Constructor and Description |
---|
SemaphoreConfigReadOnly(SemaphoreConfig config) |
Modifier and Type | Method and Description |
---|---|
SemaphoreConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.
|
SemaphoreConfig |
setBackupCount(int backupCount)
Sets the number of synchronous backups.
|
SemaphoreConfig |
setInitialPermits(int initialPermits)
Sets the initial number of permits.
|
SemaphoreConfig |
setName(String name)
Sets the name of the semaphore.
|
getAsReadOnly, getAsyncBackupCount, getBackupCount, getInitialPermits, getName, getTotalBackupCount, toString
public SemaphoreConfigReadOnly(SemaphoreConfig config)
public SemaphoreConfig setName(String name)
SemaphoreConfig
setName
in class SemaphoreConfig
name
- the name of the semaphorepublic SemaphoreConfig setInitialPermits(int initialPermits)
SemaphoreConfig
setInitialPermits
in class SemaphoreConfig
initialPermits
- the initial number of permits.public 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 set.SemaphoreConfig.setBackupCount(int)
,
SemaphoreConfig.getAsyncBackupCount()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.