M - The message type.F - The message field type.public class TestConfigSupplier<M extends PMessage<M,F>,F extends PField> extends UpdatingConfigSupplier<M,F>
| Constructor and Description |
|---|
TestConfigSupplier()
Start with no initial config.
|
TestConfigSupplier(Clock clock)
Start with no initial config.
|
TestConfigSupplier(Clock clock,
M initialConfig)
Start with an initial config value.
|
TestConfigSupplier(M initialConfig)
Start with an initial config value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get a simple descriptive name for this config supplier.
|
void |
testUpdate(M newInstance)
Update the current config and trigger updates.
|
String |
toString() |
addListener, configTimestamp, get, removeListener, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsnapshotpublic TestConfigSupplier()
public TestConfigSupplier(@Nonnull Clock clock)
clock - The clock to use for timing.public TestConfigSupplier(@Nonnull Clock clock, @Nonnull M initialConfig)
clock - The clock to use for timing.initialConfig - The initial config value.public void testUpdate(@Nonnull M newInstance)
newInstance - The new config instance.public String getName()
ConfigSupplierCopyright © 2015–2018 morimekta.net. All rights reserved.