Interface TransportConverter.Watcher<T>
- All Known Implementing Classes:
TransportToAasConverter.AasWatcher,WsWatcher
- Enclosing class:
TransportConverter<T>
public static interface TransportConverter.Watcher<T>
Watches for updates.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetConsumer(Consumer<T> consumer) Defines a consumer for the watched information.start()Starts the watcher.stop()Stops the watcher.
-
Method Details
-
start
TransportConverter.Watcher<T> start()Starts the watcher.- Returns:
- this
-
stop
TransportConverter.Watcher<T> stop()Stops the watcher.- Returns:
- this
-
setConsumer
Defines a consumer for the watched information.- Parameters:
consumer- the consumer or null for none
-