Interface ConfigurationListener<VIEWT>
- Type Parameters:
VIEWT- VIEW type configuration.
- All Known Subinterfaces:
ConfigurationNamedListListener<VIEWT>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Configuration property change listener.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ConfigurationListener<T>fromConsumer(Consumer<ConfigurationNotificationEvent<T>> callback) Creates an adapter for a given callback.static <T> ConfigurationListener<T>fromNewValueConsumer(Consumer<T> callback) Creates an adapter for a given callback.Called on property value update.
-
Method Details
-
onUpdate
Called on property value update.- Parameters:
ctx- Notification context.- Returns:
- Future that signifies the end of the listener execution.
-
fromNewValueConsumer
Creates an adapter for a given callback. -
fromConsumer
static <T> ConfigurationListener<T> fromConsumer(Consumer<ConfigurationNotificationEvent<T>> callback) Creates an adapter for a given callback.
-