/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated QueueConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public QueueConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups for this {@link com.hazelcast.cache.ICache}. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated CacheSimpleConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backups, * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public CacheSimpleConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated SemaphoreConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public RingbufferConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated CacheConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public MapConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated MultiMapConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public MultiMapConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups for this {@link com.hazelcast.cache.ICache}. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated CacheSimpleConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backups, * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public CacheSimpleConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated CollectionConfig * @throws IllegalArgumentException if asyncBackupCount is smaller than 0, * or larger than the maximum number of backups, * or the sum of the backups and async backups is larger than the maximum number of backups. * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public T setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(asyncBackupCount, asyncBackupCount); return (T) this; }
/** * Sets the number of synchronous backups. * * @param asyncBackupCount the number of synchronous backups to set * @return the updated CardinalityEstimatorConfig * @throws IllegalArgumentException if backupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setAsyncBackupCount(int) * @see #getBackupCount() */ public CardinalityEstimatorConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups for this {@link com.hazelcast.cache.ICache}. * * @param asyncBackupCount the number of asynchronous backups to set for this {@link com.hazelcast.cache.ICache} * @return the updated CacheConfig * @throws IllegalArgumentException if asyncBackupCount is smaller than 0, * or larger than the maximum number of backups, * or the sum of the synchronous and asynchronous backups is larger * than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public CacheConfig<K, V> setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated QueueConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public QueueConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param asyncBackupCount the number of synchronous backups to set * @return the updated CardinalityEstimatorConfig * @throws IllegalArgumentException if backupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setAsyncBackupCount(int) * @see #getBackupCount() */ public CardinalityEstimatorConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated CollectionConfig * @throws IllegalArgumentException if asyncBackupCount is smaller than 0, * or larger than the maximum number of backups, * or the sum of the backups and async backups is larger than the maximum number of backups. * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public T setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(asyncBackupCount, asyncBackupCount); return (T) this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated SemaphoreConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public RingbufferConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated SemaphoreConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum * number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public SemaphoreConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated MultiMapConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public MultiMapConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated CacheConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public MapConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups. * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated SemaphoreConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * or larger than the maximum number of backup * or the sum of the backups and async backups is larger than the maximum * number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public SemaphoreConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups for this {@link com.hazelcast.cache.ICache}. * * @param asyncBackupCount the number of asynchronous backups to set for this {@link com.hazelcast.cache.ICache} * @return the updated CacheConfig * @throws IllegalArgumentException if asyncBackupCount is smaller than 0, * or larger than the maximum number of backups, * or the sum of the synchronous and asynchronous backups is larger * than the maximum number of backups * @see #setBackupCount(int) * @see #getAsyncBackupCount() */ public CacheConfig<K, V> setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
public CardinalityEstimatorConfig(String name, int backupCount, int asyncBackupCount, String quorumName, MergePolicyConfig mergePolicyConfig) { this.name = name; this.backupCount = checkBackupCount(backupCount, asyncBackupCount); this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); this.quorumName = quorumName; this.mergePolicyConfig = mergePolicyConfig; validate(); }
public CardinalityEstimatorConfig(String name, int backupCount, int asyncBackupCount, String quorumName, MergePolicyConfig mergePolicyConfig) { this.name = name; this.backupCount = checkBackupCount(backupCount, asyncBackupCount); this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); this.quorumName = quorumName; this.mergePolicyConfig = mergePolicyConfig; validate(); }