/** * Number of synchronous backups. For example, if 1 is set as the backup count, * then all entries of the map will be copied to another JVM for fail-safety. * 0 means no sync backup. * * @param backupCount the number of synchronous backups to set for this {@link com.hazelcast.core.IMap} * @see #setAsyncBackupCount(int) */ public MapConfig setBackupCount(final int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Number of synchronous backups. For example, if 1 is set as the backup count, * then all entries of the map will be copied to another JVM for fail-safety. * 0 means no sync backup. * * @param backupCount the number of synchronous backups to set for this {@link com.hazelcast.core.IMap} * @see #setAsyncBackupCount(int) */ public MapConfig setBackupCount(final int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups for this collection. * * @param backupCount the number of synchronous backups to set for this collection * @return the current CollectionConfig * @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) */ public T setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return (T) this; }
/** * Sets the number of synchronous backups for this queue. * * @param backupCount the number of synchronous backups to set * @return the current QueueConfig * @throws IllegalArgumentException if backupCount 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 #setAsyncBackupCount(int) */ public QueueConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount the number of synchronous backups to set for this MultiMap * @return the current MultiMapConfig * @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) */ public MultiMapConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups for this {@link com.hazelcast.cache.ICache}. * * @param backupCount the new backupCount * @return the updated CacheSimpleConfig * @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 */ public CacheSimpleConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount the number of synchronous backups to set for this MultiMap * @return the current MultiMapConfig * @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) */ public MultiMapConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups for this {@link com.hazelcast.cache.ICache}. * * @param backupCount the new backupCount * @return the updated CacheSimpleConfig * @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 */ public CacheSimpleConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount 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 setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount the number of synchronous backups to set * @return the updated SemaphoreConfig * @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 RingbufferConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups for this queue. * * @param backupCount the number of synchronous backups to set * @return the current QueueConfig * @throws IllegalArgumentException if backupCount 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 #setAsyncBackupCount(int) */ public QueueConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups for this collection. * * @param backupCount the number of synchronous backups to set for this collection * @return the current CollectionConfig * @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) */ public T setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return (T) this; }
/** * Sets the number of synchronous backups. * * @param backupCount the number of synchronous backups to set * @return the updated SemaphoreConfig * @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 RingbufferConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount 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 setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount the number of synchronous backups to set * @return the updated SemaphoreConfig * @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 SemaphoreConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. * * @param backupCount the number of synchronous backups to set * @return the updated SemaphoreConfig * @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 SemaphoreConfig setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. For example, if 1 is set as the backup count, * then all entries of the map will be copied to another JVM for * fail-safety. 0 means no synchronous backup. * * @param backupCount the number of synchronous backups to set for this {@link com.hazelcast.cache.ICache} * @return the current cache config instance * @throws IllegalArgumentException if backupCount smaller than 0, * or larger than the maximum number of backup, * or the sum of the synchronous and asynchronous backups is larger than * the maximum number of backups * @see #setAsyncBackupCount(int) */ public CacheConfig<K, V> setBackupCount(int backupCount) { this.backupCount = checkBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of synchronous backups. For example, if 1 is set as the backup count, * then all entries of the map will be copied to another JVM for * fail-safety. 0 means no synchronous backup. * * @param backupCount the number of synchronous backups to set for this {@link com.hazelcast.cache.ICache} * @return the current cache config instance * @throws IllegalArgumentException if backupCount smaller than 0, * or larger than the maximum number of backup, * or the sum of the synchronous and asynchronous backups is larger than * the maximum number of backups * @see #setAsyncBackupCount(int) */ public CacheConfig<K, V> setBackupCount(int backupCount) { this.backupCount = checkBackupCount(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(); }