Class TransportToAasConverter.AasWatcher
java.lang.Object
de.iip_ecosphere.platform.services.environment.services.TransportToAasConverter.AasWatcher
- All Implemented Interfaces:
TransportConverter.Watcher<T>
- Enclosing class:
TransportToAasConverter<T>
protected class TransportToAasConverter.AasWatcher
extends Object
implements TransportConverter.Watcher<T>
A regular AAS watcher.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConsumer(Consumer<T> consumer) Defines a consumer for the watched information.start()Starts the watcher.stop()Stops the watcher.
-
Field Details
-
timer
-
period
private int period -
lastRun
private long lastRun
-
-
Constructor Details
-
AasWatcher
private AasWatcher(int period) Creates a watcher instance.- Parameters:
period- the watching period in ms
-
-
Method Details
-
start
Description copied from interface:TransportConverter.WatcherStarts the watcher.- Specified by:
startin interfaceTransportConverter.Watcher<T>- Returns:
- this
-
stop
Description copied from interface:TransportConverter.WatcherStops the watcher.- Specified by:
stopin interfaceTransportConverter.Watcher<T>- Returns:
- this
-
setConsumer
Description copied from interface:TransportConverter.WatcherDefines a consumer for the watched information.- Specified by:
setConsumerin interfaceTransportConverter.Watcher<T>- Parameters:
consumer- the consumer or null for none
-