public abstract class ConfigCallback<T>
extends java.lang.Object
| Constructor and Description |
|---|
ConfigCallback() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
get()
Get the current, used value of the config variable.
|
boolean |
isReadOnly() |
abstract void |
set(T val)
Set the config variable to a new value.
|
public abstract T get()
public abstract void set(T val) throws InvalidConfigValueException, NodeNeedRestartException
val - The new value.InvalidConfigOptionException - If the new value is invalid for this particular option.InvalidConfigValueExceptionNodeNeedRestartExceptionpublic boolean isReadOnly()