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, toStringpublic SemaphoreConfigReadOnly(SemaphoreConfig config)
public SemaphoreConfig setName(String name)
SemaphoreConfigsetName in class SemaphoreConfigname - the name of the semaphorepublic SemaphoreConfig setInitialPermits(int initialPermits)
SemaphoreConfigsetInitialPermits in class SemaphoreConfiginitialPermits - the initial number of permits.public SemaphoreConfig setBackupCount(int backupCount)
SemaphoreConfigsetBackupCount in class SemaphoreConfigbackupCount - the number of synchronous backups to setSemaphoreConfig.setAsyncBackupCount(int), 
SemaphoreConfig.getBackupCount()public SemaphoreConfig setAsyncBackupCount(int asyncBackupCount)
SemaphoreConfigsetAsyncBackupCount in class SemaphoreConfigasyncBackupCount - the number of asynchronous synchronous backups to set.SemaphoreConfig.setBackupCount(int), 
SemaphoreConfig.getAsyncBackupCount()Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.