Interface IConfigBatchUpdater
@NonExtendable
public interface IConfigBatchUpdater
Queues related setting changes for
IConfigSchema.batchUpdate(Consumer).
Call set(IConfigValue, Object) for each desired value. MezzConfig validates and applies the complete group only
after the callback returns, so listeners never observe a partially updated batch.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionset(IConfigValue<T> configValue, T value) Add or replace a value change in this batch.
-
Method Details
-
set
Add or replace a value change in this batch.If the same config value is set more than once, the last value is used. Built-in list values are copied to an unmodifiable snapshot when queued.
- Parameters:
configValue- config value to updatevalue- new value- Returns:
- this updater
- Throws:
IllegalArgumentException- if the value is invalid or cannot be safely serializedIllegalStateException- if this updater is no longer active- Since:
- 0.1.0
-