public interface ConfigSupplier<M extends PMessage<M,F>,F extends PField> extends Supplier<M>
supplier.set(config)) that will cause a config
change call to each listener regardless of if the config values actually
did change.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ConfigListener<M,F> listener)
Add a listener to changes to this config.
|
long |
configTimestamp()
Get the last update time as a millisecond timestamp.
|
String |
getName()
Get a simple descriptive name for this config supplier.
|
void |
removeListener(ConfigListener<M,F> listener)
Remove a config change listener.
|
default ConfigSupplier<M,F> |
snapshot() |
void addListener(ConfigListener<M,F> listener)
listener - The config change listener to be added.void removeListener(ConfigListener<M,F> listener)
listener - The config change listener to be removed.String getName()
long configTimestamp()
default ConfigSupplier<M,F> snapshot()
Copyright © 2015–2017 morimekta.net. All rights reserved.